Wasabi
|
#include <WError.hpp>
Public Member Functions | |
WError (W_ERROR err) | |
std::string | AsString (bool getBacktrace=false) const |
operator bool () | |
bool | operator== (const WError &other) const |
bool | operator== (const W_ERROR &other) const |
bool | operator!= (const WError &other) const |
bool | operator!= (const W_ERROR &other) const |
Public Attributes | |
W_ERROR | m_error |
This class represents a general purpose error code.
std::string WError::AsString | ( | bool | getBacktrace = false | ) | const |
Retrieves the string corresponding to the carried error.
getBacktrace | Whether or not to include a backtrace in the returned string |
WError::operator bool | ( | ) |
Evaluates this error code to a boolean.
bool WError::operator!= | ( | const W_ERROR & | other | ) | const |
Performs != on the underlying m_error
bool WError::operator!= | ( | const WError & | other | ) | const |
Performs != on the underlying m_error
bool WError::operator== | ( | const W_ERROR & | other | ) | const |
Performs == on the underlying m_error
bool WError::operator== | ( | const WError & | other | ) | const |
Performs == on the underlying m_error
W_ERROR WError::m_error |
The carried error code