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

The main exception for json manipulation. More...

#include <exceptions.hh>

Inheritance diagram for awali::json::exception:
awali::json::access_exception awali::json::coercion_exception awali::json::kind_mismatch awali::json::out_of_range awali::json::parse_exception awali::json::parse_exception awali::json::coercion_exception awali::json::kind_mismatch

Public Member Functions

 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

node_tattempted_parsed_tree
 
std::string caller
 
std::string message
 
node_t const * node
 
path_t path_to_root
 
std::string what_msg
 

Detailed Description

The main exception for json manipulation.

Constructor & Destructor Documentation

◆ exception() [1/4]

awali::json::exception::exception ( std::string  message,
std::string  caller = "" 
)

◆ exception() [2/4]

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

◆ exception() [3/4]

awali::json::exception::exception ( std::string const &  message,
std::string const &  caller,
node_t const *  node = nullptr 
)

◆ exception() [4/4]

awali::json::exception::exception ( std::string  message,
node_t const *  node = nullptr 
)

Member Function Documentation

◆ make_message()

virtual std::string awali::json::exception::make_message ( )
virtual

◆ what() [1/2]

virtual const char* awali::json::exception::what ( ) const
overridevirtualnoexcept

◆ what() [2/2]

virtual const char* awali::json::exception::what ( ) const
overridevirtualnoexcept

Field Documentation

◆ attempted_parsed_tree

node_t* awali::json::exception::attempted_parsed_tree

◆ caller

std::string awali::json::exception::caller

◆ message

std::string awali::json::exception::message

◆ node

node_t const* awali::json::exception::node

◆ path_to_root

path_t awali::json::exception::path_to_root

◆ what_msg

std::string awali::json::exception::what_msg

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