AlkException

Search for usage in LXR

AlkException Class Reference

#include <alkexception.h>

Public Member Functions

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

Detailed Description

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

Definition at line 25 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 11 of file alkexception.cpp.

◆ ~AlkException()

AlkException::~AlkException ( )

Definition at line 20 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 72 of file alkexception.h.

◆ 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 83 of file alkexception.h.

◆ 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 61 of file alkexception.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.