ChaiScript
Public Member Functions | Public Attributes | List of all members
chaiscript::exception::bad_boxed_cast Class Reference

Thrown in the event that a Boxed_Value cannot be cast to the desired type. More...

#include <bad_boxed_cast.hpp>

Inheritance diagram for chaiscript::exception::bad_boxed_cast:
chaiscript::exception::bad_boxed_dynamic_cast chaiscript::exception::bad_boxed_type_cast chaiscript::exception::conversion_error

Public Member Functions

 bad_boxed_cast (Type_Info t_from, const std::type_info &t_to, utility::Static_String t_what) noexcept
 
 bad_boxed_cast (Type_Info t_from, const std::type_info &t_to) noexcept
 
 bad_boxed_cast (utility::Static_String t_what) noexcept
 
 bad_boxed_cast (const bad_boxed_cast &) noexcept=default
 
const char * what () const noexcept override
 Description of what error occurred.
 

Public Attributes

Type_Info from
 Type_Info contained in the Boxed_Value.
 
const std::type_info * to = nullptr
 std::type_info of the desired (but failed) result type
 

Detailed Description

Thrown in the event that a Boxed_Value cannot be cast to the desired type.

It is used internally during function dispatch and may be used by the end user.

See also
chaiscript::boxed_cast

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