Appearance
GenericException
cpp
#include <utlib/include/utl/types/Exception.h>cpp
template<typename T>
struct GenericExceptionDefined in utlib/include/utl/types/Exception.h:26
An exception that carries a payload and a message.
Public Attributes
| Return | Name | Description |
|---|---|---|
T | payload | Exception-specific payload. |
std::string | msg | Message returned by what(). |
payload
cpp
T payloadDefined in utlib/include/utl/types/Exception.h:28
Exception-specific payload.
msg
cpp
std::string msgDefined in utlib/include/utl/types/Exception.h:29
Message returned by what().
Public Methods
| Return | Name | Description |
|---|---|---|
const char * | what const inline noexcept override | Returns the message. |
what
const inline noexcept override
cpp
inline const char * what() const noexcept overrideDefined in utlib/include/utl/types/Exception.h:35
Returns the message.