### 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.

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:

  - Using the constructor.
    fileName
      The source file containing the function that created this object.
    functionName
      The name of the function creating this object.
    lineNumber
      The line number of the statement from the source file from which the object was created.
  - Using the macro IEXCEPTION_LOCATION. This macro captures the current location information using constants provided by the compiler for all of the parameters. Default values are provided for all the parameters to support environments in which all constants or alternative means for getting location information are not provided.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Attributes

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

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

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

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

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None