Class to declare error message format when parsing, derived from the public class "std::runtime_error".
More...
#include <parse_exception.hpp>
Class to declare error message format when parsing, derived from the public class "std::runtime_error".
- Date
- 17/08/20 Such error messages shall be thrown whenever a parser class has an unrecoverable issue parsing a message.. Note that "std::runtime_error" is already a class derived from the base class "exception". Note on "explicit" keyword: When a class has a constructor which can be called with a single argument (since arguments might be set to some values by default), then this constructor becomes a conversion constructor, since it allows the !implicit! conversion of the single argument to the full class. We can avoid such implicit conversions as these may lead to unexpected results by making the constructor explicit with the help of the "explicit" keyword.
Definition at line 86 of file parse_exception.hpp.
◆ ParseException()
ParseException::ParseException |
( |
const std::string & |
error | ) |
|
|
inlineexplicit |
The documentation for this class was generated from the following file: