MyMoneyException Class Reference

#include <mymoneyexception.h>

Collaboration diagram for MyMoneyException:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

This class describes an exception that is thrown by the engine in case of a failure.

Constructor & Destructor Documentation

MyMoneyException::MyMoneyException ( const QString &  msg,
const QString &  file,
const unsigned long  line 
)

The constructor to create a new MyMoneyException object.

Parameters:
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 MYMONEYEXCEPTION(text) instead. It automatically assigns the file and line parameter to the correct values.

MyMoneyException::~MyMoneyException (  ) 


Member Function Documentation

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.

Returns:
reference to QString containing the message

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.

Returns:
reference to QString containing the filename

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.

Returns:
long integer containing the line number


Member Data Documentation

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


The documentation for this class was generated from the following file:

Generated on Wed Jan 26 13:09:14 2011 for KMyMoney by  doxygen 1.5.6