btool
A parser/converter/transpiler for .bib files
ParserException.hpp
Go to the documentation of this file.
1 #ifndef BIBPARSER_PARSEREXCEPTION_HPP
2 #define BIBPARSER_PARSEREXCEPTION_HPP
3 
4 #include <ParserContext.hpp>
6 #include <stdexcept>
7 #include <string>
8 
12 struct ParserException : std::runtime_error {
15  const std::string message;
16 
18 
19  [[nodiscard]] auto what() const noexcept -> const char * override;
20 };
21 
22 #endif
ParserException::context
const ParserContext context
the context of the parser
Definition: ParserException.hpp:14
ParserState
Definition: ParserState.hpp:7
ParserContext.hpp
AbstractParserState
Definition: AbstractParserState.hpp:13
ParserException::what
auto what() const noexcept -> const char *override
Definition: ParserException.cpp:26
ParserContext
Definition: ParserContext.hpp:10
ParserException::ParserException
ParserException(AbstractParserState *state, const ParserContext &context, const std::string &message)
Definition: ParserException.cpp:10
ParserException::state
ParserState * state
the state of the parser
Definition: ParserException.hpp:13
ParserException::message
const std::string message
the message to throw
Definition: ParserException.hpp:15
ParserException
Definition: ParserException.hpp:12
AbstractParserState.hpp