#include <Exception.hpp>
Public Member Functions | |
| Exception () | |
| Default Constructor. Creates a Message with an empty author, empty message, the Default MessageType and the creation time. | |
| Exception (const Exception &exception) | |
| Copy Constructor Creates an identical Exception. | |
| Exception (const std::string &header, const std::string &description, const std::string &sourcefile, unsigned linenumber) | |
| Exception Constructor. Creates a new Exception, with the specified header description, sourcefile, and linenumber. The creation time will be automaticly added. | |
| virtual Exception & | operator= (const Exception &exception) |
| Copy Operator. Copies the data from the specified Exception. | |
| const std::string & | getHeader () const |
| Get's the header of the Exception. | |
| const std::string & | getDescription () const |
| Get's the description of the Exception. | |
| const std::string & | getSourceFile () const |
| Get's the sourcefile where the Exception occured. | |
| const unsigned & | lineNumber () const |
| Get's the number of the line where the Exception occured. | |
| const boost::posix_time::ptime & | getTime () const |
| Get's the creation time of the Exception. | |
| Message | convertToMessage () const |
Static Public Member Functions | |
| static std::string | convertToString (const boost::posix_time::ptime &time, const std::string &format) |
| Formats the boost::posix_time as specified. | |
Exception Class.
Contains detailed information about the exception:
A brief Header, detailed description, source-file, linenumber and the time/date.
| std::string Tool::Exception::convertToString | ( | const boost::posix_time::ptime & | time, | |
| const std::string & | format | |||
| ) | [static] |
Formats the boost::posix_time as specified.
| format | how the time should be formated |
Reimplemented from Tool::Message.
| const std::string & Tool::Exception::getDescription | ( | ) | const |
Get's the description of the Exception.
| const std::string & Tool::Exception::getHeader | ( | ) | const |
Get's the header of the Exception.
| const std::string & Tool::Exception::getSourceFile | ( | ) | const |
Get's the sourcefile where the Exception occured.
| const boost::posix_time::ptime & Tool::Exception::getTime | ( | ) | const |
Get's the creation time of the Exception.
Reimplemented from Tool::Message.
| const unsigned & Tool::Exception::lineNumber | ( | ) | const |
Get's the number of the line where the Exception occured.
1.6.2