Exception thrown for all types of errors in the Bond Runtime Library.
More...
#include <bond/systems/exception.h>
|
| | Exception () |
| | Constructs an Exception with an empty message.
|
| | Exception (const char *format,...) |
| | Constructs an Exception with a formatted message. The arguments are forwarded to vsnprintf to write the message to the encapsulated error message buffer.
|
| const char * | GetMessage () const |
| | Returns the encapsulated error message.
|
|
| static const size_t | MESSAGE_BUFFER_LENGTH = 2048 |
| | Length of the buffer for the encapsulated error message.
|
Exception thrown for all types of errors in the Bond Runtime Library.
Exception does not derive from std::exception. It is typically thrown with the macros in bond/systems/error.h. Compiler errors in Bond source code are not reported with exceptions; they are pushed to a CompilerErrorBuffer instead.
◆ Exception() [1/2]
| Bond::Exception::Exception |
( |
| ) |
|
|
inline |
Constructs an Exception with an empty message.
◆ Exception() [2/2]
| Bond::Exception::Exception |
( |
const char * | format, |
|
|
| ... ) |
Constructs an Exception with a formatted message. The arguments are forwarded to vsnprintf to write the message to the encapsulated error message buffer.
- Parameters
-
| format | A printf-style format string. The formatted message is truncated if it does not fit in MESSAGE_BUFFER_LENGTH bytes, including the terminating null. |
◆ GetMessage()
| const char * Bond::Exception::GetMessage |
( |
| ) |
const |
|
inline |
Returns the encapsulated error message.
◆ MESSAGE_BUFFER_LENGTH
| const size_t Bond::Exception::MESSAGE_BUFFER_LENGTH = 2048 |
|
static |
Length of the buffer for the encapsulated error message.
The documentation for this class was generated from the following file:
- include/bond/systems/exception.h