libwreport
2.14
|
Report an error when a consistency check failed. More...
#include <error.h>
Public Member Functions | |
error_consistency (const std::string &msg) | |
ErrorCode | code () const throw () |
Exception-specific error code. More... | |
virtual const char * | what () const throw () |
Error message. | |
Static Public Member Functions | |
static void | throwf (const char *fmt,...) WREPORT_THROWF_ATTRS(1 |
Throw the exception, building the message printf-style. | |
![]() | |
static const char * | strerror (ErrorCode code) |
String description for an error code. | |
Data Fields | |
std::string | msg |
error message returned by what() | |
Report an error when a consistency check failed.
|
inline |
msg | error message |
|
inlinevirtual |
Exception-specific error code.
This is useful to map C++ exceptions to C or Fortran error codes
Implements wreport::error.
References wreport::WR_ERR_CONSISTENCY.