The base class for exceptions thrown by the SDK.
More...
#include <exceptions.hpp>
Inherits std::runtime_error.
Inherited by LiteFX::ArgumentNotInitializedException, LiteFX::ArgumentOutOfRangeException, LiteFX::InvalidArgumentException, and LiteFX::RuntimeException.
|
| Exception (const std::string &message, const std::source_location &location, std::stacktrace trace) |
| Initializes the exception.
|
|
The base class for exceptions thrown by the SDK.
◆ Exception() [1/3]
LiteFX::Exception::Exception |
( |
const std::string & | message, |
|
|
const std::source_location & | location, |
|
|
std::stacktrace | trace ) |
|
inlineexplicitprotected |
Initializes the exception.
- Parameters
-
message | The error message. |
location | The source location of the error. |
trace | The stack trace leading to the error. |
◆ Exception() [2/3]
LiteFX::Exception::Exception |
( |
const Exception & | | ) |
|
|
default |
◆ Exception() [3/3]
LiteFX::Exception::Exception |
( |
Exception && | | ) |
|
|
defaultnoexcept |
◆ ~Exception()
LiteFX::Exception::~Exception |
( |
| ) |
|
|
overridedefaultnoexcept |
◆ location()
const std::source_location & LiteFX::Exception::location |
( |
| ) |
const |
|
inlinenoexcept |
Gets the source location that identifies where the exception has been thrown.
- Returns
- The source location of the exception.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ trace()
const std::stacktrace & LiteFX::Exception::trace |
( |
| ) |
const |
|
inlinenoexcept |
Gets the stack trace leading to the exception.
- Returns
- The stack trace of the exception.