btool
A parser/converter/transpiler for .bib files
ParserException.cpp
Go to the documentation of this file.
1
#include <
ParserException.hpp
>
2
#include <string>
3
10
ParserException::ParserException
(
11
AbstractParserState
*state,
12
const
ParserContext
&context,
13
const
std::string &message
14
) : std::runtime_error{
""
},
15
state{state},
16
context{context},
17
message{
18
context.filename +
":"
+ std::to_string(context.line)
19
+
":"
+ std::to_string(context.column) +
" - "
+ message
20
} {}
21
26
auto
ParserException::what
() const noexcept -> const
char
* {
27
return
message
.c_str();
28
}
AbstractParserState
Definition:
AbstractParserState.hpp:13
ParserException::what
auto what() const noexcept -> const char *override
Definition:
ParserException.cpp:26
ParserContext
Definition:
ParserContext.hpp:10
ParserException.hpp
ParserException::ParserException
ParserException(AbstractParserState *state, const ParserContext &context, const std::string &message)
Definition:
ParserException.cpp:10
ParserException::message
const std::string message
the message to throw
Definition:
ParserException.hpp:15
src
ParserException.cpp
Generated by
1.8.19