Class representing an error in a register. More...
#include <RegisterBase.h>
Public Member Functions | |
Exception (const std::string &message) | |
const std::string & | getMissingKey () const |
Returns the missing key. More... | |
template<typename T > | |
ExceptionRegisterError & | operator<< (const T &x) |
ExceptionRegisterError & | setMissingKey (std::string_view key) |
Sets the missing key. More... | |
const char * | what () const throw () |
Private Attributes | |
std::string | message |
std::string | missingKey |
The missing key. More... | |
Class representing an error in a register.
|
inline |
|
inline |
Returns the missing key.
|
inline |
|
inline |
Sets the missing key.
key | The missing key |
ExceptionRegisterError can be used as a builder pattern: throw ExceptionRegisterError().setMissingKey(key);
the key can be retrieved with ExceptionRegisterError::getMissingKey()
|
inlineinherited |
|
privateinherited |
|
private |
The missing key.
Hosted by GitHub | 1.8.17 |