MQTTSuite
Loading...
Searching...
No Matches
inja::InjaError Struct Reference

#include <inja.hpp>

Inheritance diagram for inja::InjaError:
Collaboration diagram for inja::InjaError:

Public Member Functions

 InjaError (const std::string &type, const std::string &message)
 InjaError (const std::string &type, const std::string &message, SourceLocation location)

Public Attributes

const std::string type
const std::string message
const SourceLocation location

Detailed Description

Definition at line 255 of file inja.hpp.

Constructor & Destructor Documentation

◆ InjaError() [1/2]

inja::InjaError::InjaError ( const std::string & type,
const std::string & message )
inlineexplicit

Definition at line 261 of file inja.hpp.

262 : std::runtime_error("[inja.exception." + type + "] " + message)
263 , type(type)
265 , location({0, 0}) {
266 }
const std::string type
Definition inja.hpp:256
const SourceLocation location
Definition inja.hpp:259
const std::string message
Definition inja.hpp:257

References location, message, and type.

Referenced by inja::FileError::FileError().

Here is the caller graph for this function:

◆ InjaError() [2/2]

inja::InjaError::InjaError ( const std::string & type,
const std::string & message,
SourceLocation location )
inlineexplicit

Definition at line 268 of file inja.hpp.

269 : std::runtime_error("[inja.exception." + type + "] (at " + std::to_string(location.line) + ":" +
270 std::to_string(location.column) + ") " + message)
271 , type(type)
273 , location(location) {
274 }

References inja::SourceLocation::column, inja::SourceLocation::line, location, message, and type.

Referenced by inja::DataError::DataError(), inja::FileError::FileError(), inja::ParserError::ParserError(), and inja::RenderError::RenderError().

Here is the caller graph for this function:

Member Data Documentation

◆ location

const SourceLocation inja::InjaError::location

◆ message

const std::string inja::InjaError::message

◆ type

const std::string inja::InjaError::type

The documentation for this struct was generated from the following file: