libwreport
3.15
|
Base class for DB-All.e exceptions. More...
#include <error.h>
Public Member Functions | |
virtual ErrorCode | code () const noexcept=0 |
Exception-specific error code. More... | |
virtual const char * | what () const noexcept=0 |
Error message. | |
Static Public Member Functions | |
static const char * | strerror (ErrorCode code) |
String description for an error code. | |
Base class for DB-All.e exceptions.
|
pure virtualnoexcept |
Exception-specific error code.
This is useful to map C++ exceptions to C or Fortran error codes
Implemented in wreport::errors::StringBase< ERROR_CODE >, wreport::errors::StringBase< WR_ERR_DOMAIN >, wreport::errors::StringBase< WR_ERR_NOTFOUND >, wreport::errors::StringBase< WR_ERR_TYPE >, wreport::errors::StringBase< WR_ERR_HANDLES >, wreport::errors::StringBase< WR_ERR_SYSTEM >, wreport::errors::StringBase< WR_ERR_CONSISTENCY >, wreport::errors::StringBase< WR_ERR_UNIMPLEMENTED >, wreport::errors::StringBase< WR_ERR_TOOLONG >, wreport::errors::StringBase< WR_ERR_PARSE >, wreport::errors::StringBase< WR_ERR_REGEX >, and wreport::error_alloc.