|
BDE 4.39.x Production Release
|
#include <bslstl_error.h>
This class acts as a base for types that represent the source and encoding of error categories.
See bslstl_error
Public Member Functions | |
| error_category () | |
| virtual | ~error_category () |
| virtual error_condition | default_error_condition (int value) const BSLS_KEYWORD_NOEXCEPT |
| virtual bool | equivalent (int code, const error_condition &condition) const BSLS_KEYWORD_NOEXCEPT |
| virtual bool | equivalent (const error_code &code, int condition) const BSLS_KEYWORD_NOEXCEPT |
| virtual std::string | message (int value) const =0 |
| virtual const char * | name () const BSLS_KEYWORD_NOEXCEPT=0 |
| bool | operator== (const error_category &other) const BSLS_KEYWORD_NOEXCEPT |
| bool | operator!= (const error_category &other) const BSLS_KEYWORD_NOEXCEPT |
| bool | operator< (const error_category &other) const BSLS_KEYWORD_NOEXCEPT |
|
inline |
Create an object of this type.
|
virtual |
Destroy this object.
|
inlinevirtual |
Return an error_condition object initialized with the specified value and this object as the error category.
|
inlinevirtual |
|
inlinevirtual |
Return, for the error category defined by this object, whether the specified code and condition are considered equivalent.
|
inlinepure virtual |
Return a string describing the error condition denoted by the specified value.
|
inlinepure virtual |
Return the name of this error category.
|
inline |
Return whether this object is different than the specified other.
|
inline |
Return whether this object precedes the specified other in a total ordering of error_category objects.
|
inline |
Return whether this object is the same as the specified other.