MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / error

Method error

Source/Util/ConfigParser.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ConfigParser::error(std::string str)
49{
50 if (atEnd())
51 {
52 if (m_position != 0)
53 {
54 --m_position;
55 }
56 throw ParseError(std::move(str), m_lines[m_position].filename, -1);
57 }
58 else
59 {
60 throw ParseError(std::move(str), m_lines[m_position].filename, m_lines[m_position].line_no);
61 }
62}
63
64void ConfigParser::parseLine(std::string line, std::string const& filename, int line_no)
65{

Callers 3

loadFromStreamMethod · 0.80

Calls 1

ParseErrorClass · 0.85

Tested by

no test coverage detected