|
Equalizer 1.0
|
A registry translating error codes to strings. More...
#include <errorRegistry.h>
Public Member Functions | |
| COBASE_API const std::string & | getString (const uint32_t error) const |
| COBASE_API void | setString (const uint32_t error, const std::string &text) |
| Set an error string for the given error code. | |
| COBASE_API void | eraseString (const uint32_t error) |
| Clear a given error code string. | |
| bool | isEmpty () const |
A registry translating error codes to strings.
Applications can register custom error strings starting at eq::ERROR_CUSTOM. Error registration and erasure is not thread-safe. Equalizer registers errors only during eq::init(). It is strongly advised to register application-specific errors before eq::init() and erase them after eq::exit().
Definition at line 40 of file errorRegistry.h.
| COBASE_API void co::base::ErrorRegistry::eraseString | ( | const uint32_t | error | ) |
Clear a given error code string.
Referenced by eVolve::exitErrors(), and eqPly::exitErrors().
Here is the caller graph for this function:| COBASE_API const std::string& co::base::ErrorRegistry::getString | ( | const uint32_t | error | ) | const |
| COBASE_API void co::base::ErrorRegistry::setString | ( | const uint32_t | error, |
| const std::string & | text | ||
| ) |
Set an error string for the given error code.
Referenced by eVolve::initErrors(), and eqPly::initErrors().
Here is the caller graph for this function:
1.0 by
1.7.3