#include <nawa/Exception.h>
Inherits std::exception.
Public Member Functions | |
Exception (const std::string &inFunction, int errorCode, const std::string &message="No message provided.", const std::string &additionalDebugInfo=std::string()) | |
virtual int | getErrorCode () const noexcept |
virtual std::string | getMessage () const noexcept |
virtual std::string | getDebugMessage () const noexcept |
char const * | what () const noexcept override |
Exception class that can be used by apps to catch errors resulting from NAWA function calls.
Definition at line 35 of file Exception.h.
|
inline |
Construct an Exception with an additional message.
inFunction | Function in which the exception occurred. |
errorCode | An integral error code identifying the error that caused this exception. |
message | Optional message describing the problem (the only thing printed when calling getMessage()). |
additionalDebugInfo | Optional additional info for debugging. |
Definition at line 47 of file Exception.h.
|
inlinevirtualnoexcept |
Get the integral error code that identifies the error that caused this exception.
Definition at line 63 of file Exception.h.
|
inlinevirtualnoexcept |
Get the provided message as a string.
Definition at line 71 of file Exception.h.
|
inlinevirtualnoexcept |
Get the full constructed debug message as a string.
Definition at line 79 of file Exception.h.
|
inlineoverridenoexcept |
Get the full constructed debug message. This function would be called and the message displayed when an uncaught Exception leads to termination. Use getMessage to get the message without debug information.
Definition at line 88 of file Exception.h.