crown  1.0.0
pelib::crown::CrownException Class Reference

#include <CrownException.hpp>

List of all members.

Public Member Functions

 CrownException (const std::string &message)
 CrownException (const char *message)
virtual ~CrownException () 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 32 of file CrownException.hpp.


Constructor & Destructor Documentation

CrownException::CrownException ( const std::string &  message) [explicit]

Constructor

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

Definition at line 40 of file CrownException.cpp.

CrownException::CrownException ( const char *  message) [explicit]

Constructor

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

Definition at line 45 of file CrownException.cpp.

CrownException::~CrownException ( ) throw () [virtual]

Destructor

Definition at line 50 of file CrownException.cpp.


Member Function Documentation

const char * CrownException::what ( ) const throw () [virtual]

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

Definition at line 56 of file CrownException.cpp.


Member Data Documentation

std::string pelib::crown::CrownException::msg [protected]

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

Definition at line 54 of file CrownException.hpp.


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