11#ifndef throw_parse_error
12# define throw_parse_error(dataFile, dataLine, dataToken, dataLineNumber) throw parse_error(dataFile, dataLine, dataToken, dataLineNumber, __LINE__, __FILE__)
19 parse_error(std::filesystem::path dataFile,
const std::string& szDataLine,
const std::string& szDataToken,
int dataLineNumber,
int sourceLine,
const char* szSourceFile)
20 : m_parseInfo(dataFile, szDataLine, szDataToken, dataLineNumber), sourceLine(sourceLine), sourceFile(szSourceFile)
24 parse_error(
const char* szDataFile,
const char* szDataLine,
const char* szDataToken,
int sourceLine,
const char* szSourceFile)
25 :
parse_error(szDataFile, szDataLine, szDataToken, -1, sourceLine, szSourceFile)
29 parse_error(
const char* szDataFile,
const char* szDataLine,
int sourceLine,
const char* szSourceFile)
30 :
parse_error(szDataFile, szDataLine,
"", -1, sourceLine, szSourceFile)
34 parse_error(
const char* szDataFile,
int sourceLine,
const char* szSourceFile)
35 :
parse_error(szDataFile,
"",
"", -1, sourceLine, szSourceFile)
39 std::string
toString(
const std::string& message =
"")
const;
47 [[nodiscard]]
char const*
what() const noexcept;
55 std::filesystem::path sourceFile;
57 constexpr inline static const
char WHAT_STR[] = "Parse
error";
const parse_info & getParseInfo() const
std::string toString(const std::string &message="") const
char const * what() const noexcept
parse_error(const char *szDataFile, const char *szDataLine, int sourceLine, const char *szSourceFile)
parse_error(const char *szDataFile, const char *szDataLine, const char *szDataToken, int sourceLine, const char *szSourceFile)
parse_error(const char *szDataFile, int sourceLine, const char *szSourceFile)
std::string sourceLocation() const
parse_error(std::filesystem::path dataFile, const std::string &szDataLine, const std::string &szDataToken, int dataLineNumber, int sourceLine, const char *szSourceFile)