alkimia  8.0.3
Public Member Functions | Private Attributes | List of all members
AlkException Class Reference

#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
 

Detailed Description

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

Definition at line 36 of file alkexception.h.

Constructor & Destructor Documentation

◆ AlkException()

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

The constructor to create a new ALKEXCEPTION object.

Parameters
msgreference to QString containing the message
filereference to QString containing the name of the sourcefile where the exception was thrown
lineunsigned 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.

References file(), line(), m_file, m_line, and m_msg.

◆ ~AlkException()

AlkException::~AlkException ( )

Definition at line 30 of file alkexception.cpp.

Member Function Documentation

◆ file()

const QString& AlkException::file ( ) 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

Definition at line 84 of file alkexception.h.

Referenced by AlkException().

◆ line()

unsigned long AlkException::line ( ) 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

Definition at line 95 of file alkexception.h.

Referenced by AlkException().

◆ what()

const QString& AlkException::what ( ) 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

Definition at line 73 of file alkexception.h.

Referenced by AlkOnlineQuote::Private::parseDate().

Member Data Documentation

◆ m_file

QString AlkException::m_file
private

This member variable holds the filename

Definition at line 109 of file alkexception.h.

Referenced by AlkException().

◆ m_line

unsigned long AlkException::m_line
private

This member variable holds the line number

Definition at line 114 of file alkexception.h.

Referenced by AlkException().

◆ m_msg

QString AlkException::m_msg
private

This member variable holds the message

Definition at line 104 of file alkexception.h.

Referenced by AlkException().


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