GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
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:
Collaboration diagram for chaiscript::exception::bad_boxed_cast:

Public Member Functions

 bad_boxed_cast (Type_Info t_from, const std::type_info &t_to, std::string t_what) noexcept
 bad_boxed_cast (Type_Info t_from, const std::type_info &t_to)
 bad_boxed_cast (std::string t_what) noexcept
 bad_boxed_cast (const bad_boxed_cast &)=default
 ~bad_boxed_cast () noexcept override=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

Constructor & Destructor Documentation

◆ bad_boxed_cast() [1/4]

chaiscript::exception::bad_boxed_cast::bad_boxed_cast ( Type_Info t_from,
const std::type_info & t_to,
std::string t_what )
inlinenoexcept
Here is the caller graph for this function:

◆ bad_boxed_cast() [2/4]

chaiscript::exception::bad_boxed_cast::bad_boxed_cast ( Type_Info t_from,
const std::type_info & t_to )
inline

◆ bad_boxed_cast() [3/4]

chaiscript::exception::bad_boxed_cast::bad_boxed_cast ( std::string t_what)
inlineexplicitnoexcept

◆ bad_boxed_cast() [4/4]

chaiscript::exception::bad_boxed_cast::bad_boxed_cast ( const bad_boxed_cast & )
default

◆ ~bad_boxed_cast()

chaiscript::exception::bad_boxed_cast::~bad_boxed_cast ( )
overridedefaultnoexcept

Member Function Documentation

◆ what()

const char * chaiscript::exception::bad_boxed_cast::what ( ) const
inlineoverridenoexcept

Description of what error occurred.

Here is the caller graph for this function:

Member Data Documentation

◆ from

Type_Info chaiscript::exception::bad_boxed_cast::from

Type_Info contained in the Boxed_Value.

◆ to

const std::type_info* chaiscript::exception::bad_boxed_cast::to = nullptr

std::type_info of the desired (but failed) result type


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