34 #ifndef __RUNTIMEERROR__
35 #define __RUNTIMEERROR__
48 const char *
what( )
const throw( )
63 virtual void outputWhat( std::ostream & o )
const =0;
73 return left << right.
what( );
std::string m_what
Contains the what string. Populated by the first call to the what method.
std::ostream & operator<<(std::ostream &left, const RuntimeError &right)
Convenient formatted output operator that just outputs the what string.
const char * what() const
Implementation of the std::exception::what method.
bool m_firstWhat
True i.f.f. the what method has not yet been called.
virtual void outputWhat(std::ostream &o) const =0
This class serves the same purpose as std::runtime_error, but it can be more convenient to use...