DLPrimitives
Public Member Functions | List of all members
dlprim::json::bad_value_cast Class Reference

The error that is thrown in case of bad conversion of json::value to ordinary value. More...

#include <include/dlprim/json.hpp>

Inheritance diagram for dlprim::json::bad_value_cast:

Public Member Functions

 bad_value_cast (std::string const &s)
 
 bad_value_cast (std::string const &s, json_type actual)
 
 bad_value_cast (std::string const &s, json_type expected, json_type actual)
 
virtual const char * what () const throw ()
 

Detailed Description

The error that is thrown in case of bad conversion of json::value to ordinary value.

When implementing json::traits for complex classes you are expected to throw this exception in case of invalid formatting


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