gatb.core-API-0.0.0
|
Exception class to be used for option management error. More...
#include <OptionsParser.hpp>
Public Member Functions | |
OptionFailure (IOptionsParser *parser, IOptionsParser::Result result) | |
OptionFailure (IOptionsParser *parser, const std::string &msg) | |
int | displayErrors (std::ostream &os) const |
Exception class to be used for option management error.
This class should be thrown when something went wrong during options parsing.
|
inline |
Constructor.
[in] | parser | : the parser that threw the exception. |
[in] | result | : information gathered during the parsing. |
|
inline |
Constructor.
[in] | parser | : the parser that threw the exception. |
[in] | msg | : message to be displayed |
int displayErrors | ( | std::ostream & | os | ) | const |
Display information about the failure on the provided output stream
[out] | os | : output stream to be used |