IExceptionLocation

The IExceptionLocation class saves the location information when an exception is thrown or re-thrown. None of the functions in this class throws exceptions because an exception probably has been thrown already or is about to be thrown.

Typically, either the ITHROW or IRETHROW macro creates an IExceptionLocation object when an exception is to be thrown or re-thrown, respectively. However, you can create your own IExceptionLocation object by constructing it yourself or by using the IEXCEPTION_LOCATION macro.


IExceptionLocation - Member Functions and Data by Group

Constructors & Destructor

You can construct objects of this class.


[view class]
IExceptionLocation
public:
IExceptionLocation( const char* fileName = 0, const char* functionName = 0, unsigned long lineNumber = 0 )

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

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Attributes

Use these members to return the attributes of the exception location object.


[view class]
fileName
public:
const char* fileName() const

Returns the path-qualified source file name where an exception has been thrown or rethrown.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
functionName
public:
const char* functionName() const

Returns the name of the function that has thrown or rethrown an exception.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
lineNumber
public:
unsigned long lineNumber() const

Returns the line number of the statement in the source file from which an exception has been thrown or rethrown.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IExceptionLocation - Inherited Member Functions and Data

Inherited Public Functions

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data