pelib  2.0.0
pelib::CastException Class Reference

#include <CastException.hpp>

List of all members.

Public Member Functions

 CastException (const std::string &message)
 CastException (const char *message)
virtual ~CastException () throw ()
virtual const char * what () const throw ()

Protected Attributes

std::string msg

Detailed Description

Exception thrown upon failed cast attempts from a superclass to a derived class

Definition at line 30 of file CastException.hpp.


Constructor & Destructor Documentation

pelib::CastException::CastException ( const std::string message) [explicit]

Constructor

Parameters:
messageMessage to display to the screen if the exception is not caught

Definition at line 32 of file CastException.cpp.

pelib::CastException::CastException ( const char *  message) [explicit]

Constructor

Parameters:
messageMessage to display to the screen if the exception is not caught

Definition at line 37 of file CastException.cpp.

pelib::CastException::~CastException ( ) throw () [virtual]

Destructor

Definition at line 42 of file CastException.cpp.


Member Function Documentation

const char * pelib::CastException::what ( ) const throw () [virtual]

Returns a human-readable string that explains the reason that lead to throwing this exception

Definition at line 48 of file CastException.cpp.


Member Data Documentation

Human-readable message to show if the exception is not caught

Definition at line 52 of file CastException.hpp.


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