Class ParseException

Inheritance Relationships

Base Type

  • public std::runtime_error

Class Documentation

class ParseException : public std::runtime_error

Class to declare error message format when parsing, derived from the public class “std::runtime_error”.

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.

Date

17/08/20

Public Functions

inline explicit ParseException(const std::string &error)