IInvalidName

Provides an exception message reporting that an invalid name was given for an object. IInvalidName provides an exception reporting that an invalid name, such as a file name or a network resource name, was used for an object. You can use the standard error message the class provides when you throw an exception under these circumstances or you can construct an instance of IInvalidName that allows you to specify a custom message.


IInvalidName - Member Functions and Data by Group

Constructors & Destructor

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


[view class]
~IInvalidName
Destructor.
public:
virtual ~IInvalidName()
This function destroys an IInvalidName exception object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IInvalidName

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 IInvalidName exception using a custom error message, if one is provided.
public:
IInvalidName(const char* text = 0)
Use this function to create an invalid name exception that provides a custom message giving specific details of the error condition.

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
Copy constructor.
public:
IInvalidName(const IInvalidName&)

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 the function in this group to obtain the name of the exception.


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

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IInvalidName - Inherited Member Functions and Data

Inherited Public Functions

IException
IInvalidRequest

Inherited Public Data

IException

Inherited Protected Functions

Inherited Protected Data