BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsl::error_category Class Referenceabstract

#include <bslstl_error.h>

Detailed Description

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
 

Constructor & Destructor Documentation

◆ error_category()

bsl::error_category::error_category ( )
inline

Create an object of this type.

◆ ~error_category()

virtual bsl::error_category::~error_category ( )
virtual

Destroy this object.

Member Function Documentation

◆ default_error_condition()

error_condition bsl::error_category::default_error_condition ( int  value) const
inlinevirtual

Return an error_condition object initialized with the specified value and this object as the error category.

◆ equivalent() [1/2]

bool bsl::error_category::equivalent ( const error_code code,
int  condition 
) const
inlinevirtual

◆ equivalent() [2/2]

bool bsl::error_category::equivalent ( int  code,
const error_condition condition 
) const
inlinevirtual

Return, for the error category defined by this object, whether the specified code and condition are considered equivalent.

◆ message()

std::string bsl::error_category::message ( int  value) const
inlinepure virtual

Return a string describing the error condition denoted by the specified value.

◆ name()

const char * bsl::error_category::name ( ) const
inlinepure virtual

Return the name of this error category.

◆ operator!=()

bool bsl::error_category::operator!= ( const error_category other) const
inline

Return whether this object is different than the specified other.

◆ operator<()

bool bsl::error_category::operator< ( const error_category other) const
inline

Return whether this object precedes the specified other in a total ordering of error_category objects.

◆ operator==()

bool bsl::error_category::operator== ( const error_category other) const
inline

Return whether this object is the same as the specified other.


The documentation for this class was generated from the following file: