Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Defines an exception object that is thrown on failure by the functions in the Hyper API C++ library. More...
#include <HyperException.hpp>
Public Member Functions | |
HyperException & | operator= (const HyperException &other) noexcept |
Copy assignment operator. | |
HyperException (const HyperException &other) noexcept | |
Copy constructor. | |
HyperException & | operator= (HyperException &&other)=default |
Move assignment operator. | |
HyperException (HyperException &&other)=default | |
Move constructor. | |
const char * | getMainMessage () const noexcept |
Returns the message stored in the exception object, or "" if there is none. More... | |
const char * | getHint () const noexcept |
Returns the hint message stored in the exception object, or "" if there is none. | |
const char * | getMessage () const noexcept |
Returns the message stored in the exception object, or "" if there is none. More... | |
const char * | getHintMessage () const noexcept |
Returns the hint message stored in the exception object, or "" if there is none. More... | |
HYPER_DEPRECATED ("Use getCause().has_value() instead. This function will be removed in the future.") bool hasCause() const noexcept | |
Returns whether this error has an underlying cause stored. More... | |
optional< HyperException > | getCause () const noexcept |
Returns the cause stored in the exception object. | |
ContextId | getContextId () const noexcept |
Returns the context id. | |
std::string | toString () const |
Returns a formatted string containing the message and hint of the error and all causes. | |
const char * | what () const noexcept override |
Returns a null terminated character sequence that may be used to identify the exception. | |
Defines an exception object that is thrown on failure by the functions in the Hyper API C++ library.
Definition at line 41 of file HyperException.hpp.
|
inlinenoexcept |
Returns the hint message stored in the exception object, or "" if there is none.
Definition at line 80 of file HyperException.hpp.
|
inlinenoexcept |
Returns the message stored in the exception object, or "" if there is none.
Error messages may change between HAPI versions.
Definition at line 55 of file HyperException.hpp.
|
inlinenoexcept |
Returns the message stored in the exception object, or "" if there is none.
Error messages may change between HAPI versions.
Definition at line 69 of file HyperException.hpp.
|
inlinenoexcept |
Returns whether this error has an underlying cause stored.
Definition at line 89 of file HyperException.hpp.