The Exception class is the general exception base class.
More...
#include <Exception.h>
|
|
virtual | ~Exception () AUD_NOEXCEPT |
| | Destroys the object.
|
| virtual const char * | what () const AUD_NOEXCEPT |
| | Returns the error message.
|
| virtual std::string | getDebugMessage () const |
| | Returns the error message plus file and line number for debugging purposes.
|
| const std::string & | getMessage () const |
| | Returns the error message.
|
| const std::string & | getFile () const |
| | Returns the file in which the exception was thrown.
|
| int | getLine () const |
| | Returns the line where the exception was originally thrown.
|
|
|
const std::string | m_message |
| | A message describing the problem.
|
|
const std::string | m_file |
| | The source code file in which the exception was thrown.
|
|
const int | m_line |
| | The source code line from which the exception was thrown.
|
The Exception class is the general exception base class.
◆ Exception() [1/2]
| Exception::Exception |
( |
const Exception & | exception | ) |
|
|
protected |
Copy constructor.
- Parameters
-
| exception | The exception to be copied. |
◆ Exception() [2/2]
| Exception::Exception |
( |
const std::string & | message, |
|
|
const std::string & | file, |
|
|
int | line ) |
|
protected |
Creates a new Exception object.
- Parameters
-
| message | A message describing the problem. |
| file | The source code file in which the exception was thrown. |
| line | The source code line from which the exception was thrown. |
◆ getDebugMessage()
| virtual std::string Exception::getDebugMessage |
( |
| ) |
const |
|
virtual |
Returns the error message plus file and line number for debugging purposes.
- Returns
- The error message including debug information.
◆ getFile()
| const std::string & Exception::getFile |
( |
| ) |
const |
Returns the file in which the exception was thrown.
- Returns
- The name of the file in which the exception was thrown.
◆ getLine()
| int Exception::getLine |
( |
| ) |
const |
Returns the line where the exception was originally thrown.
- Returns
- The line of the source file where the exception was generated.
◆ getMessage()
| const std::string & Exception::getMessage |
( |
| ) |
const |
Returns the error message.
- Returns
- The error message as string.
◆ what()
| virtual const char * Exception::what |
( |
| ) |
const |
|
virtual |
Returns the error message.
- Returns
- A C string error message.
The documentation for this class was generated from the following file: