Equalizer  1.3.1-git
Public Member Functions
co::base::ErrorRegistry Class Reference

A registry translating error codes to strings. More...

#include <errorRegistry.h>

+ Inheritance diagram for co::base::ErrorRegistry:
+ Collaboration diagram for co::base::ErrorRegistry:

List of all members.

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

Detailed Description

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().

See also:
co::base::Error, eq::Error

Definition at line 41 of file base/errorRegistry.h.


Member Function Documentation

COBASE_API void co::base::ErrorRegistry::eraseString ( const uint32_t  error)

Clear a given error code string.

Version:
1.0
COBASE_API const std::string& co::base::ErrorRegistry::getString ( const uint32_t  error) const
Returns:
the error string for the given error code.
Version:
1.0
COBASE_API void co::base::ErrorRegistry::setString ( const uint32_t  error,
const std::string &  text 
)

Set an error string for the given error code.

Version:
1.0

The documentation for this class was generated from the following file:
Generated on Fri Apr 20 2012 12:21:49 for Equalizer 1.3.1-git by  doxygen 1.8.0