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) +
":" +
25 std::to_string(location.column) +
") " + message),
26 type(type), message(message), location(location) {}
Definition: exceptions.hpp:37
Definition: exceptions.hpp:14
Definition: exceptions.hpp:42
Definition: exceptions.hpp:29
Definition: exceptions.hpp:33
Definition: exceptions.hpp:9