An abstract base exception class providing an interface to a throw/ThrowAsDerivedType mechanism which will allow us to catch the base type and ThrowAsDerivedType the derived type. More...
#include <uhal/log/exception.hpp>
Public Member Functions | |
| exception & | operator= (const exception &aExc) |
| Assignment operator. More... | |
| virtual | ~exception () throw () |
| Destructor. More... | |
| 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... | |
| virtual exception * | clone ()=0 |
| Return a new object of the derived exception type cloned from this object. More... | |
| void | append (const char *aCStr) throw () |
| Add additional information to the exception message. More... | |
Public Attributes | |
| exception const exception & | aExc |
| Constructor. More... | |
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 which the call to "what()" uses when formatting the output string. More... | |
| char * | mAdditionalInfo |
| Memory into which additional information is added by calls to append. More... | |
An abstract base exception class providing an interface to a throw/ThrowAsDerivedType mechanism which will allow us to catch the base type and ThrowAsDerivedType the derived type.
Definition at line 89 of file exception.hpp.
|
virtual | |||||||||||||
Destructor.
Definition at line 100 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 208 of file exception.cpp.
|
pure virtual |
Return a new object of the derived exception type cloned from this object.
|
protectedpure virtual | |||||||||||||
Return the description associated with this type of exception.
Assignment operator.
| aExc | an exception to copy |
Definition at line 89 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.
|
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 116 of file exception.cpp.
References setupTemplate::description, and GccOutputCleaner::TStyle().
Referenced by uhal::PCIe::disconnect(), uhal::Mmap::read(), uhal::UDP< InnerProtocol >::read_callback(), and uhal::TCP< InnerProtocol, nr_buffers_per_send >::read_callback().
Constructor.
Copy constructor
| aExc | an exception to copy |
Definition at line 101 of file exception.hpp.
|
private |
Memory into which additional information is added by calls to append.
Definition at line 164 of file exception.hpp.
|
private |
Memory which the call to "what()" uses when formatting the output string.
Definition at line 161 of file exception.hpp.
|
private |
The time at which the exception was thrown.
Definition at line 158 of file exception.hpp.
1.8.13