Deepsolver
|
Notifies about the errors occurred during regular expressions processing. More...
Public Member Functions | |
void | accept (ExceptionVisitor &visitor) const |
Calls appropriate visitor method. | |
std::string | getMessage () const |
Returns a single line error description. | |
std::string | getType () const |
Returns a string with short error type designation. | |
RegExpException (const std::string &message) | |
The constructor. | |
virtual | ~RegExpException () |
The destructor. |
This class brings an information about errors caused by regular expressions processing. The only value, provided by this exception, is single-line message with short description what's wrong.
Deepsolver::RegExpException::RegExpException | ( | const std::string & | message | ) | [inline] |
[in] | message | The error message |
void Deepsolver::RegExpException::accept | ( | ExceptionVisitor & | visitor | ) | const [inline, virtual] |
This method performs invocation of corresponding visit() method of the visitor, provided by the reference. You should use it each time, when you want to make particular handling action for various exception types, as it suggested by design pattern "visitor".
[in] | visitor | The reference to the visitor |
Implements Deepsolver::AbstractException.
std::string Deepsolver::RegExpException::getMessage | ( | ) | const [virtual] |
This method returns a single line string value with error description. Usually it is the value printed to user in the error message. The value should not include error type, since it can be obtained through getType() method.
Implements Deepsolver::AbstractException.
std::string Deepsolver::RegExpException::getType | ( | ) | const [inline, virtual] |
This method returns a short string with one or two words describing the error type. For example, this method can return values like "system", "back-end" etc. A value returned by this method usually is used for error message construction.
Implements Deepsolver::AbstractException.