|
libwreport 2.1
|
Report an error while handling regular expressions. More...
#include <error.h>
Public Member Functions | |
| error_regexp (int code, void *re, const std::string &msg) | |
| ErrorCode | code () const throw () |
| Exception-specific error code. | |
| virtual const char * | what () const throw () |
| Error message. | |
Static Public Member Functions | |
| static void | throwf (int code, void *re, const char *fmt,...) WREPORT_THROWF_ATTRS(3 |
| Throw the exception, building the message printf-style. | |
Data Fields | |
| std::string | msg |
| error message returned by what() | |
Report an error while handling regular expressions.
| wreport::error_regexp::error_regexp | ( | int | code, |
| void * | re, | ||
| const std::string & | msg | ||
| ) |
| code | The error code returned by the regular expression functions. |
| re | The pointer to the regex_t structure that was being used when the error occurred. |
| msg | The error message |
| ErrorCode wreport::error_regexp::code | ( | ) | const throw () [inline, virtual] |
Exception-specific error code.
This is useful to map C++ exceptions to C or Fortran error codes
Implements wreport::error.
References wreport::WR_ERR_REGEX.
1.7.4