alkimia
8.0.2
|
#include <alkexception.h>
Public Member Functions | |
AlkException (const QString &msg, const QString &file, const unsigned long line) | |
~AlkException () | |
const QString & | what () const |
const QString & | file () const |
unsigned long | line () const |
Private Attributes | |
QString | m_msg |
QString | m_file |
unsigned long | m_line |
This class describes an exception that is thrown by the engine in case of a failure.
Definition at line 36 of file alkexception.h.
AlkException::AlkException | ( | const QString & | msg, |
const QString & | file, | ||
const unsigned long | line | ||
) |
The constructor to create a new ALKEXCEPTION object.
msg | reference to QString containing the message |
file | reference to QString containing the name of the sourcefile where the exception was thrown |
line | unsigned long containing the line number of the line where the exception was thrown in the file. |
An easier way to use this constructor is to use the macro ALKEXCEPTION(text) instead. It automatically assigns the file and line parameter to the correct values.
Definition at line 22 of file alkexception.cpp.
AlkException::~AlkException | ( | ) |
Definition at line 30 of file alkexception.cpp.
|
inline |
This method is used to return the filename that was passed during the creation of the exception object.
Definition at line 84 of file alkexception.h.
Referenced by AlkException().
|
inline |
This method is used to return the linenumber that was passed during the creation of the exception object.
Definition at line 95 of file alkexception.h.
Referenced by AlkException().
|
inline |
This method is used to return the message that was passed during the creation of the exception object.
Definition at line 73 of file alkexception.h.
Referenced by AlkOnlineQuote::Private::parseDate().
|
private |
This member variable holds the filename
Definition at line 109 of file alkexception.h.
Referenced by AlkException().
|
private |
This member variable holds the line number
Definition at line 114 of file alkexception.h.
Referenced by AlkException().
|
private |
This member variable holds the message
Definition at line 104 of file alkexception.h.
Referenced by AlkException().