#include <Throwable.hh>
Inheritance diagram for rovsoft::lib::Throwable:
Public Member Functions | |
Throwable (const std::string &mess="", ThrowablePtr cause=0) | |
Constructs a throwable object with the message mess and a Throwable caused this Throwable. | |
virtual const ThrowablePtr | getCause () const |
Returns the throwable that caused this one. | |
virtual const std::string & | getMessage () const |
Returns a reference to the message of this object. | |
virtual const std::string | toString () const |
Returns the message together with a time stamp and the class name of this object. | |
virtual void | toStream (std::ostream &out) const |
The same as toString, but writes to a stream. | |
virtual void | printBacktrace (std::ostream &out) const |
Prints toString from this object and from the one caused this one, . | |
Protected Member Functions | |
void | toStreamHelper (std::ostream &out, char *className) const |
Protected Attributes | |
std::string | message |
ost::Datetime | time |
ThrowablePtr | pcause |
It just implements a timestamped string, with cascading of Throwables caused this Throwable.
|
Constructs a throwable object with the message mess and a Throwable caused this Throwable.
|
|
Returns the throwable that caused this one.
|
|
Returns a reference to the message of this object. Don't store the return value in a reference or a pointer, copy it if you need it for a longer time!! |
|
Prints toString from this object and from the one caused this one, . .. Beginning is the source of the whole thing. Here is the call graph for this function: ![]() |
|
The same as toString, but writes to a stream.
Reimplemented in rovsoft::io::EndOfSegmentException, rovsoft::io::InvalidEncodingException, rovsoft::io::IOException, rovsoft::io::PrefixedDataException, rovsoft::io::ReadOnlyException, rovsoft::io::TargetUnreachableException, rovsoft::io::UnprefixedMetaDataException, rovsoft::io::WriteOnlyException, rovsoft::lib::Exception, rovsoft::lib::NullPointerException, and rovsoft::lib::OutOfRangeException. Here is the call graph for this function: ![]() |
|
Here is the call graph for this function: ![]() |
|
Returns the message together with a time stamp and the class name of this object.
Here is the call graph for this function: ![]() |
|
|
|
|
|
|