1 #ifndef INCLUDE_INJA_EXCEPTIONS_HPP_
2 #define INCLUDE_INJA_EXCEPTIONS_HPP_
15 const std::string type;
16 const std::string message;
20 explicit InjaError(
const std::string& type,
const std::string& message)
21 : std::runtime_error(
"[inja.exception." + type +
"] " + message), type(type), message(message), location({0, 0}) {}
24 : std::runtime_error(
"[inja.exception." + type +
"] (at " + std::to_string(location.line) +
":" + std::to_string(location.column) +
") " + message),
25 type(type), message(message), location(location) {}
Definition: exceptions.hpp:41
Definition: exceptions.hpp:36
Definition: exceptions.hpp:14
Definition: exceptions.hpp:28
Definition: exceptions.hpp:32
Definition: exceptions.hpp:9