pelib  2.0.0
pelib::PelibException Class Reference

#include <PelibException.hpp>

List of all members.

Public Member Functions

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


Constructor & Destructor Documentation

pelib::PelibException::PelibException ( 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 PelibException.cpp.

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

Constructor

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

Definition at line 37 of file PelibException.cpp.

Destructor

Definition at line 42 of file PelibException.cpp.


Member Function Documentation

const char * pelib::PelibException::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 PelibException.cpp.


Member Data Documentation

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

Definition at line 52 of file PelibException.hpp.


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