17 #ifndef AWALI_JSON_EXCEPTIONS_HH
18 #define AWALI_JSON_EXCEPTIONS_HH
40 virtual const char*
what() const noexcept
override
Definition: exceptions.hh:69
node_t const * localisation
Where the exception occured.
Definition: exceptions.hh:73
Exception used when trying to coerce a node to a given type.
Definition: exceptions.hh:83
The main exception for json manipulation.
Definition: exceptions.hh:26
virtual std::string make_message()
virtual const char * what() const noexcept override
Definition: exceptions.hh:40
std::string caller
Definition: exceptions.hh:29
exception(std::string message, std::string caller="")
Definition: exceptions.hh:34
std::string what_msg
Definition: exceptions.hh:30
std::string message
Definition: exceptions.hh:28
Definition: exceptions.hh:78
Definition: exceptions.hh:44
parse_exception(std::string caller, std::string message, path_t path, parser_t::, node_t *tree)
node_t * partial_tree()
Give the partial_tree parsed before the the exception was throwned.
parser_t::position_t start
Definition: exceptions.hh:52
~parse_exception()
Definition: exceptions.hh:61
node_t * _partial_tree
Partial tree managed to be parsed before the exception was thrown.
Definition: exceptions.hh:48
parser_t::position_t end
Definition: exceptions.hh:53
path_t path_on_throw
Definition: exceptions.hh:51
std::ostream & json(automaton_t aut, std::ostream &out)
std::vector< uint_or_string_t > path_t
Definition: node.hh:82
Main namespace of Awali.
Definition: ato.hh:22