bad_cast
class bad_cast : public exception {
};The class describes an exception thrown to indicate that a dynamic cast expression, of the form:
dynamic_cast<type>(expression)generated a null pointer to initialize a reference. The value returned by what() is an implementation-defined C string. None of the member functions throw any exceptions.