Class representing an error in a register. More...
#include <RegisterBase.h>

Public Member Functions | |
| Exception (const std::string &msg) | |
| const std::string & | getMissingKey () const |
| Returns the missing key. | |
| template<typename T> | |
| ExceptionRegisterError & | operator<< (const T &x) |
| ExceptionRegisterError & | setMissingKey (std::string_view key) |
| Sets the missing key. | |
| const char * | what () const throw () |
Private Attributes | |
| std::string | message |
| std::string | missingKey |
| The missing key. | |
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.13.2
|