Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::Exception Class Reference

Exception thrown for all types of errors in the Bond Runtime Library. More...

#include <bond/systems/exception.h>

Public Member Functions

 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 Public Attributes

static const size_t MESSAGE_BUFFER_LENGTH = 2048
 Length of the buffer for the encapsulated error message.

Detailed Description

Exception thrown for all types of errors in the Bond Runtime Library.

Constructor & Destructor Documentation

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

Member Function Documentation

◆ GetMessage()

const char * Bond::Exception::GetMessage ( ) const
inline

Returns the encapsulated error message.

Member Data Documentation

◆ 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