Awali
Another Weighted Automata library
Public Member Functions | Data Fields | Protected Attributes
awali::json::parse_exception Class Reference

#include <exceptions.hh>

Inheritance diagram for awali::json::parse_exception:
awali::json::exception awali::json::exception

Public Member Functions

 parse_exception (std::string caller, std::string message, path_t path, parser_t::, node_t *tree)
 
 parse_exception (std::string const &message, std::string const &caller)
 
 parse_exception (std::string const &message, std::string const &caller, path_t path_to_root, int line, int col)
 
 ~parse_exception ()
 
node_tpartial_tree ()
 Give the partial_tree parsed before the the exception was throwned. More...
 
- Public Member Functions inherited from awali::json::exception
 exception (std::string const &message, std::string const &caller, node_t const *node=nullptr)
 
 exception (std::string const &message, std::string const &caller, path_t path_to_root, int line, int col)
 
 exception (std::string message, node_t const *node=nullptr)
 
 exception (std::string message, std::string caller="")
 
virtual std::string make_message ()
 
virtual const char * what () const noexcept override
 
virtual const char * what () const noexcept override
 

Data Fields

parser_t::position_t end
 
path_t path_on_throw
 
parser_t::position_t start
 
- Data Fields inherited from awali::json::exception
node_tattempted_parsed_tree
 
std::string caller
 
std::string message
 
node_t const * node
 
path_t path_to_root
 
std::string what_msg
 

Protected Attributes

node_t_partial_tree
 Partial tree managed to be parsed before the exception was thrown. More...
 

Constructor & Destructor Documentation

◆ ~parse_exception()

awali::json::parse_exception::~parse_exception ( )

◆ parse_exception() [1/3]

awali::json::parse_exception::parse_exception ( std::string  caller,
std::string  message,
path_t  path,
parser_t::  ,
node_t tree 
)

◆ parse_exception() [2/3]

awali::json::parse_exception::parse_exception ( std::string const &  message,
std::string const &  caller,
path_t  path_to_root,
int  line,
int  col 
)

◆ parse_exception() [3/3]

awali::json::parse_exception::parse_exception ( std::string const &  message,
std::string const &  caller 
)

Member Function Documentation

◆ partial_tree()

node_t* awali::json::parse_exception::partial_tree ( )

Give the partial_tree parsed before the the exception was throwned.

The caller gets ownership of the pointer. Can only be used once; further call returns nullptr.

Field Documentation

◆ _partial_tree

node_t* awali::json::parse_exception::_partial_tree
protected

Partial tree managed to be parsed before the exception was thrown.

Owned by this exception.

◆ end

parser_t::position_t awali::json::parse_exception::end

◆ path_on_throw

path_t awali::json::parse_exception::path_on_throw

◆ start

parser_t::position_t awali::json::parse_exception::start

The documentation for this class was generated from the following files: