#include <regexp.h>
Public Member Functions | |
Regexp (const regex_t &re, int code, const std::string &context) throw () | |
~Regexp () throw () | |
virtual int | code () const throw () |
Get the regexp error code associated to the exception. | |
virtual const char * | type () const throw () |
Get a string tag identifying the exception type. | |
virtual std::string | desc () const throw () |
Get a string describing what happened that threw the exception. | |
Protected Attributes | |
int | m_code |
std::string | m_message |
wibble::exception::Regexp::Regexp | ( | const regex_t & | re, | |
int | code, | |||
const std::string & | context | |||
) | throw () |
wibble::exception::Regexp::~Regexp | ( | ) | throw () [inline] |
virtual int wibble::exception::Regexp::code | ( | ) | const throw () [inline, virtual] |
virtual std::string wibble::exception::Regexp::desc | ( | ) | const throw () [inline, virtual] |
Get a string describing what happened that threw the exception.
Reimplemented from wibble::exception::Generic.
References m_message.
virtual const char* wibble::exception::Regexp::type | ( | ) | const throw () [inline, virtual] |
Get a string tag identifying the exception type.
Reimplemented from wibble::exception::Generic.
int wibble::exception::Regexp::m_code [protected] |
Referenced by code().
std::string wibble::exception::Regexp::m_message [protected] |
Referenced by desc().