#include <mymoneyexception.h>
Public Member Functions | |
MyMoneyException (const QString &msg, const QString &file, const unsigned long line) | |
~MyMoneyException () | |
const QString & | what (void) const |
const QString & | file (void) const |
unsigned long | line (void) const |
Private Attributes | |
QString | m_msg |
QString | m_file |
unsigned long | m_line |
MyMoneyException::MyMoneyException | ( | const QString & | msg, | |
const QString & | file, | |||
const unsigned long | line | |||
) |
The constructor to create a new MyMoneyException 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. |
MyMoneyException::~MyMoneyException | ( | ) |
const QString& MyMoneyException::what | ( | void | ) | const [inline] |
This method is used to return the message that was passed during the creation of the exception object.
const QString& MyMoneyException::file | ( | void | ) | const [inline] |
This method is used to return the filename that was passed during the creation of the exception object.
unsigned long MyMoneyException::line | ( | void | ) | const [inline] |
This method is used to return the linenumber that was passed during the creation of the exception object.
QString MyMoneyException::m_msg [private] |
This member variable holds the message
QString MyMoneyException::m_file [private] |
This member variable holds the filename
unsigned long MyMoneyException::m_line [private] |
This member variable holds the line number