Class parse_exception
Synopsis
#include <include/cpptoml.h>
class parse_exception : public std::runtime_error
Description
Exception class for all TOML parsing errors.
Mentioned in
- Getting Started / Example Usage
Inheritance
Ancestors: std::runtime_error
Methods
parse_exception overload |
Source
Lines 1748-1759 in include/cpptoml.h.
class parse_exception : public std::runtime_error
{
public:
parse_exception(const std::string& err) : std::runtime_error{err}
{
}
parse_exception(const std::string& err, std::size_t line_number)
: std::runtime_error{err + " at line " + std::to_string(line_number)}
{
}
};