Calculator  Step 5
Public Member Functions | List of all members
syntax_error Class Reference

#include <calc_error.hpp>

Inheritance diagram for syntax_error:
parse_error calc_error

Public Member Functions

 syntax_error (std::string const &msg)
 
- Public Member Functions inherited from parse_error
 parse_error (std::string const &msg)
 
- Public Member Functions inherited from calc_error
 calc_error (std::string const &msg)
 

Detailed Description

Exception class for parser syntax errors.

Definition at line 24 of file calc_error.hpp.

Constructor & Destructor Documentation

syntax_error::syntax_error ( std::string const &  msg)
inline

Definition at line 26 of file calc_error.hpp.

26 : parse_error{"syntax error: " + msg} {}

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