Awali
Another Weighted Automata library
Public Member Functions
awali::json::coercion_exception Class Reference

Exception used when trying to coerce a node to a given type. More...

#include <exceptions.hh>

Inheritance diagram for awali::json::coercion_exception:
awali::json::access_exception awali::json::exception awali::json::exception

Public Member Functions

 coercion_exception (std::string const &message, std::string const &caller, node_t const *node=nullptr)
 
 coercion_exception (std::string message, node_t const *node=nullptr)
 
- 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
 

Additional Inherited Members

- Data Fields inherited from awali::json::access_exception
node_t const * localisation
 Where the exception occured. More...
 
- 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
 

Detailed Description

Exception used when trying to coerce a node to a given type.

Constructor & Destructor Documentation

◆ coercion_exception() [1/2]

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

◆ coercion_exception() [2/2]

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

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