IObjectNotFound

The IObjectNotFound class provides a message reporting that an operation failed because it was unable to locate the requested object. You can use an instance of this class to signal that your code encounted circumstances causing it to throw the exception. If you want to provide more specific information, IObjectNotFound allows you to construct an error message and use it instead of the default one.


IObjectNotFound - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class. You cannot assign one IObjectNotFound object from another.


[view class]
~IObjectNotFound
Destructor.
public:
virtual ~IObjectNotFound()
This function destroys an exception created by an IObjectNotFound constructor.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IObjectNotFound

This function creates an exception that indicates an operation failed because it was unable to locate the requested object.

You can create objects of this class by doing the following:

You can also copy an instance of this exception class.


Overload 1
Copy constructor.
public:
IObjectNotFound(const IObjectNotFound&)

The copy constructor is provided so that the compiler can make copies of the object during the throwing of an exception.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
Constructs an IObjectNotFound exception with a custom error message, if one is provided.
public:
IObjectNotFound(const char* text = 0)

Use this function to create an exception that allows you to specify a customized error message. If you provide one, your error message is used instead of the default one.

text
The customized error message to use for this exception. If you do not provide an error message, a default one is used.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Exception Type

Use the function in this group to obtain the name of the exception.


[view class]
name
Returns the exception class name.
public:
virtual const char* name() const
Returns the name of the actual exception class.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IObjectNotFound - Inherited Member Functions and Data

Inherited Public Functions

IAccessError
IException

Inherited Public Data

IException

Inherited Protected Functions

Inherited Protected Data