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

#include <node.hh>

Inheritance diagram for awali::json::kind_mismatch:
awali::json::exception

Public Member Functions

 kind_mismatch (std::string const &caller, node_t const *node, node_kind_t expected_type)
 
 kind_mismatch (std::string const &caller, node_t const *node, std::initializer_list< node_kind_t > types)
 
- 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)
 
virtual const char * what () const noexcept override
 

Data Fields

std::vector< node_kind_texpected_types
 
- 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
 

Static Protected Member Functions

static std::string message_builder (node_kind_t caller_kind, std::initializer_list< node_kind_t > types)
 

Constructor & Destructor Documentation

◆ kind_mismatch() [1/2]

awali::json::kind_mismatch::kind_mismatch ( std::string const &  caller,
node_t const *  node,
node_kind_t  expected_type 
)

◆ kind_mismatch() [2/2]

awali::json::kind_mismatch::kind_mismatch ( std::string const &  caller,
node_t const *  node,
std::initializer_list< node_kind_t types 
)

Member Function Documentation

◆ message_builder()

static std::string awali::json::kind_mismatch::message_builder ( node_kind_t  caller_kind,
std::initializer_list< node_kind_t types 
)
staticprotected

Field Documentation

◆ expected_types

std::vector<node_kind_t> awali::json::kind_mismatch::expected_types

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