Deepsolver
|
The class implementing the Visitor design pattern for project exceptions. More...
Public Member Functions | |
ExceptionVisitor () | |
The default constructor. | |
virtual void | visit (const CliParserException &e) |
The action for command line parsing errors. | |
virtual void | visit (const SystemException &e) |
The action for system call errors. | |
virtual void | visit (const TaskException &e) |
The action for user task processing errors. | |
virtual void | visit (const OperationCoreException &e) |
The action for operation core errors. | |
virtual void | visit (const IndexCoreException &e) |
The action for index core errors. | |
virtual void | visit (const ConfigFileException &e) |
The action for configuration file syntax errors. | |
virtual void | visit (const ConfigException &e) |
The action for configuration errors. | |
virtual void | visit (const InfoFileSyntaxException &e) |
The action for the repository infor file syntax errors. | |
virtual void | visit (const InfoFileValueException &e) |
The action for the repository info file value errors. | |
virtual void | visit (const GzipException &e) |
The action for GZip compression/decompression errors. | |
virtual void | visit (const CurlException &e) |
The action for downloading errors. | |
virtual void | visit (const RegExpException &e) |
The action for regular expression processing errors. | |
virtual void | visit (const Md5FileException &e) |
The action for MD5-file syntax errors. | |
virtual void | visit (const PkgBackEndException &e) |
The action for package back-end errors. | |
virtual void | visit (const NotImplementedException &e) |
The action for invocation of non-implemented features. | |
virtual | ~ExceptionVisitor () |
The destructor. |
This class helps to create particular handler for each type of project exceptions. For example, it can be used for generating messages, describing occurred errors. ExceptionVisitor, according to its name, implements widely-known design pattern "visitor". Use accept() method of AbstractException class to invoke appropriate visit() variant. It is not necessary to implement all visit() methods, since there are empty bodies for them. You may safely override only their subset.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const CliParserException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const SystemException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const TaskException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const OperationCoreException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const IndexCoreException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const ConfigFileException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const ConfigException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const InfoFileSyntaxException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const InfoFileValueException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const GzipException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const CurlException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const RegExpException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const Md5FileException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
virtual void Deepsolver::ExceptionVisitor::visit | ( | const PkgBackEndException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |
Reimplemented in Deepsolver::ExceptionMessagesEn.
virtual void Deepsolver::ExceptionVisitor::visit | ( | const NotImplementedException & | e | ) | [inline, virtual] |
[in] | e | The reference to the exception object |