IAlreadyExists

IAlreadyExists is an IException derived class. IAlreadyExists provides a message reporting that the function could not create the requested object because the name of the object or its location is already used. You can use instances of this class to signal that your code encounted circumstances causing it to throw the exception. If you want to provide more specific information, IAlreadyExists allows you to construct a custom message and use it instead of the default one.


IAlreadyExists - Member Functions and Data by Group

Constructors & Destructor

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


[view class]
~IAlreadyExists
Destroys the exception object.
public:
virtual ~IAlreadyExists()
This function destroys an exception created by an IAlreadyExists constructor.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IAlreadyExists

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

You can also copy an instance of this exception class.


Overload 1
Constructs an IAlreadyExists exception with a custom message.
public:
IAlreadyExists(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 message when an object of the same name or location as an existing object is requested.

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

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IAlreadyExists(const IAlreadyExists&)

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


Exception Type

Use these members to determine the name (type) of the exception. They are used for logging out an exception object's error information.


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

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IAlreadyExists - Inherited Member Functions and Data

Inherited Public Functions

IAccessError
IException

Inherited Public Data

IException

Inherited Protected Functions

Inherited Protected Data