Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
bad_cast Class Reference

An exception class thrown during ASL failures to cast. More...

#include <typeinfo.hpp>

Inheritance diagram for bad_cast:

Public Member Functions

 bad_cast ()
 bad_cast (const std::type_info &from, const std::type_info &to)
 bad_cast (const bad_cast &)
bad_castoperator= (const bad_cast &)
virtual ~bad_cast () throw ()
const char * what () const throw ()

Detailed Description

adobe::bad_cast is a decendant of std::exception. It is intended to provide detailed type information regarding the parameters into a cast that failed. If no typeid() information was used to construct the object, it simply relays "bad_cast".

Definition at line 33 of file typeinfo.hpp.

Constructor & Destructor Documentation

◆ bad_cast() [1/3]

bad_cast ( )

◆ bad_cast() [2/3]

bad_cast ( const std::type_info & from,
const std::type_info & to )

◆ bad_cast() [3/3]

bad_cast ( const bad_cast & )

◆ ~bad_cast()

virtual ~bad_cast ( )
throw ( )
virtual

Member Function Documentation

◆ operator=()

bad_cast & operator= ( const bad_cast & )

◆ what()

const char * what ( ) const
throw ( )
Returns
Either:
  • The string "bad_cast"
  • A string detailing the source and destination types that could not be cast successfully.