The IResourceExhausted class represents an exception. When a member function makes a resource request of the operating system or the presentation system that it cannot satisfy, the member function creates and throws an object of the IResourceExhausted class or one of its derived classes. IResourceExhausted is the generic out-of-resource class. Member functions use IResourceExhausted whenever its derived classes, which are for specific out-of-resource cases, are not applicable.
The derived classes for IResourceExhausted are the following:
Constructors & DestructorYou can construct and destruct objects of this class. You cannot assign one IResourceExhausted object from another.
![]() |
public:
virtual ~IResourceExhausted()
Destroys the exception object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
You can create objects of this class by doing the following:
You can also copy an instance of this exception class.
public:
IResourceExhausted(const IResourceExhausted& exception)
The copy constructor is provided so that the compiler can make copies of the object during the throwing of an exception.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IResourceExhausted( const char* errorText, unsigned long errorId = 0, Severity severity = IException::unrecoverable )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Exception TypeUse these members to determine the name (type) of the exception. They are used for logging out an exception object's error information.
![]() |
public:
virtual const char* name() const
Returns the name of the object's class.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
virtual ~IException()
virtual IException& addLocation( const IExceptionLocation& location )
IException& appendText(const char* errorText)
static void
assertParameter( const char* exceptionText,
IExceptionLocation location )
ErrorCodeGroup errorCodeGroup() const
unsigned long errorId() const
IException( const char* errorText,
unsigned long errorId = 0,
Severity severity = IException::unrecoverable )
IException(const IException& exception)
virtual int isRecoverable() const
const IExceptionLocation* locationAtIndex( unsigned long locationIndex ) const
unsigned long locationCount() const
virtual IException& logExceptionData()
IException& setErrorCodeGroup(ErrorCodeGroup errorGroup)
IException& setErrorId(unsigned long errorId)
IException& setSeverity(Severity severity)
IException& setText(const char* errorText)
static IException::TraceFn* setTraceFunction( IException::TraceFn& traceFunction )
virtual void terminate()
const char* text(unsigned long indexFromTop = 0) const
unsigned long textCount() const
static ErrorCodeGroup const baseLibrary
static ErrorCodeGroup const CLibrary
static ErrorCodeGroup const operatingSystem
static ErrorCodeGroup const other
static ErrorCodeGroup const presentationSystem