ROSaic
Public Member Functions
rosaic_driver::ParseException Class Reference

Ćlass to declare error message format when parsing, derived from the public class "std::runtime_error". More...

#include <parse_exception.hpp>

Inheritance diagram for rosaic_driver::ParseException:
Inheritance graph
[legend]
Collaboration diagram for rosaic_driver::ParseException:
Collaboration graph
[legend]

Public Member Functions

 ParseException (const std::string &error)
 

Detailed Description

Ćlass to declare error message format when parsing, derived from the public class "std::runtime_error".

Date
17/08/20 Such error messages are 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 78 of file parse_exception.hpp.

Constructor & Destructor Documentation

◆ ParseException()

rosaic_driver::ParseException::ParseException ( const std::string &  error)
inlineexplicit

Definition at line 81 of file parse_exception.hpp.

81  : std::runtime_error(error)
82  {}

The documentation for this class was generated from the following file: