OnixS BME SENAF Handler C++ library 2.3.0
API documentation
Loading...
Searching...
No Matches
Error Class Reference

Public Member Functions

 Error (const std::string &source, ErrorCode code)
 Error (const std::string &source, ErrorCode code, const std::string &description)
 Error (const Error &other)
virtual ~Error () throw ()
ErrorCode code () const
const char * description () const
const char * source () const
virtual const char * what () const throw ()
std::string toString () const
void toString (std::string &) const
Erroroperator= (const Error &other)

Detailed Description

Definition at line 63 of file Error.h.

Constructor & Destructor Documentation

◆ Error() [1/3]

Error ( const std::string & source,
ErrorCode code )

Initializes instance with just a code.

◆ Error() [2/3]

Error ( const std::string & source,
ErrorCode code,
const std::string & description )

Initializes instance with code and description.

◆ Error() [3/3]

Error ( const Error & other)

Initializes as clone of another error.

◆ ~Error()

virtual ~Error ( )
throw ( )
virtual

Destruction interface.

Member Function Documentation

◆ code()

ErrorCode code ( ) const
inline

Code of error.

Definition at line 114 of file Error.h.

◆ description()

const char * description ( ) const
inline

Human readable description of error.

Definition at line 119 of file Error.h.

◆ operator=()

Error & operator= ( const Error & other)

Copies error attributes from another instance.

◆ source()

const char * source ( ) const
inline

Origin of the error.

Definition at line 124 of file Error.h.

◆ toString() [1/2]

std::string toString ( ) const
inline

String presentation of an error.

Definition at line 129 of file Error.h.

◆ toString() [2/2]

void toString ( std::string & ) const

Appends presentation of an error to the string.

◆ what()

virtual const char * what ( ) const
throw ( )
virtual

Human readable description of error.