Represents errors that occur during application execution.
More...
#include <luciad/Exception.h>
|
| Exception (std::string message) |
| Initializes a new instance of the Exception class with a specified error message. More...
|
|
| Exception (std::string message, const Exception &innerException) |
| Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
|
|
virtual | ~Exception () |
|
std::optional< Exception > | getInnerException () const |
| Returns the inner exception that caused this exception. More...
|
|
std::string | getStackTrace () const |
| Returns the string representation of the stack trace including all the inner exceptions stack traces. More...
|
|
std::string | what () const |
| Returns the message that describes the error. More...
|
|
Represents errors that occur during application execution.
◆ Exception() [1/2]
luciad::Exception::Exception |
( |
std::string |
message | ) |
|
|
explicit |
Initializes a new instance of the Exception class with a specified error message.
- Parameters
-
message | the message that describes the error |
◆ ~Exception()
virtual luciad::Exception::~Exception |
( |
| ) |
|
|
virtual |
◆ Exception() [2/2]
luciad::Exception::Exception |
( |
std::string |
message, |
|
|
const Exception & |
innerException |
|
) |
| |
Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.
- Parameters
-
message | the message that describes the error. |
innerException | the inner exception that caused this exception. |
◆ getInnerException()
std::optional< Exception > luciad::Exception::getInnerException |
( |
| ) |
const |
Returns the inner exception that caused this exception.
- Returns
- the inner exception that caused this exception.
◆ getStackTrace()
std::string luciad::Exception::getStackTrace |
( |
| ) |
const |
Returns the string representation of the stack trace including all the inner exceptions stack traces.
- Returns
- the string representation of the stack trace including all the inner exceptions stack traces.
◆ what()
std::string luciad::Exception::what |
( |
| ) |
const |
Returns the message that describes the error.
- Returns
- the message that describes the error.