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.
You can construct objects of this class.
![]() |
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:
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to return the attributes of the exception location object.
![]() |
public:
const char* fileName() const
Returns the path-qualified source file name where an exception has been thrown or rethrown.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
const char* functionName() const
Returns the name of the function that has thrown or rethrown an exception.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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.
Windows | OS/2 | AIX |
Yes | Yes | Yes |