An abstract base exception class, including an interface to throw as the derived type (for passing exceptions between threads) More...
#include <uhal/log/exception.hpp>
Public Member Functions | |
exception & | operator= (const exception &aExc) |
Assignment operator. More... | |
virtual | ~exception () throw () |
virtual const char * | what () const throw () |
Function which returns the error message associated with an exception If no error message has previously been defined, then it makes the typename readable (where appropriate) and returns this instead. More... | |
virtual void | throwAsDerivedType ()=0 |
Function which casts a pointer from the base type of this object to a derived type of this object and rethrows as the derived type. More... | |
void | append (const char *aCStr) throw () |
Add additional information to the exception message. More... | |
Public Attributes | |
exception const exception & | aExc |
Protected Member Functions | |
virtual std::string | description () const =0 throw () |
Return the description associated with this type of exception. More... | |
Private Attributes | |
timeval | mTime |
The time at which the exception was thrown. More... | |
char * | mString |
Memory into which message is added by calls to append. More... | |
An abstract base exception class, including an interface to throw as the derived type (for passing exceptions between threads)
Definition at line 70 of file exception.hpp.
|
virtual |
Definition at line 77 of file exception.cpp.
void uhal::exception::exception::append | ( | const char * | aCStr | ) | |
throw | ( | ||||
) |
Add additional information to the exception message.
aCStr | additional information to be added to the exception message |
Definition at line 104 of file exception.cpp.
Referenced by uhal::log().
|
protectedpure virtual |
Return the description associated with this type of exception.
Assignment operator.
aExc | an exception to copy |
Definition at line 70 of file exception.cpp.
|
pure virtual |
Function which casts a pointer from the base type of this object to a derived type of this object and rethrows as the derived type.
Referenced by uhal::Mmap::read(), and uhal::PCIe::read().
|
virtual |
Function which returns the error message associated with an exception If no error message has previously been defined, then it makes the typename readable (where appropriate) and returns this instead.
Definition at line 87 of file exception.cpp.
References setupTemplate::description.
Referenced by uhal::Mmap::read(), uhal::PCIe::read(), uhal::TCP< InnerProtocol, nr_buffers_per_send >::read_callback(), and uhal::UDP< InnerProtocol >::read_callback().
Definition at line 76 of file exception.hpp.
|
private |
Memory into which message is added by calls to append.
Definition at line 116 of file exception.hpp.
|
private |
The time at which the exception was thrown.
Definition at line 113 of file exception.hpp.