|
Equalizer
1.4.1
|
The registry translating error codes to strings. More...
#include <errorRegistry.h>
Inheritance diagram for eq::fabric::ErrorRegistry:
Collaboration diagram for eq::fabric::ErrorRegistry:Public Member Functions | |
| const std::string & | getString (const uint32_t error) const |
| void | setString (const uint32_t error, const std::string &text) |
| Set an error string for the given error code. | |
| void | eraseString (const uint32_t error) |
| Clear a given error code string. | |
| bool | isEmpty () const |
The 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 42 of file eq/fabric/errorRegistry.h.
| void eq::fabric::ErrorRegistry::eraseString | ( | const uint32_t | error | ) |
Clear a given error code string.
| const std::string& eq::fabric::ErrorRegistry::getString | ( | const uint32_t | error | ) | const |
| void eq::fabric::ErrorRegistry::setString | ( | const uint32_t | error, |
| const std::string & | text | ||
| ) |
Set an error string for the given error code.
1.4.1 by
1.7.6.1