TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
TfException Class Reference

#include <tfexception.h>

Inheritance diagram for TfException:
Inheritance graph
[legend]
Collaboration diagram for TfException:
Collaboration graph
[legend]

Public Member Functions

 TfException (const QString &message, const char *fileName="", int lineNumber=0) noexcept
 
 TfException (const TfException &e) noexcept
 
virtual ~TfException () throw ()
 
QString message () const
 
QString fileName () const
 
int lineNumber () const
 
virtual void raise () const
 
virtual std::exception * clone () const
 
virtual QString className () const
 
virtual const char * what () const noexcept override
 

Protected Attributes

QString msg
 
QString file
 
int line {0}
 
QByteArray whatmsg
 

Detailed Description

The TfException class is a base class for all TreeFrog exception classes.

Constructor & Destructor Documentation

◆ TfException() [1/2]

TfException::TfException ( const QString &  message,
const char *  fileName = "",
int  lineNumber = 0 
)
inlinenoexcept

Constructor.

◆ TfException() [2/2]

TfException::TfException ( const TfException e)
inlinenoexcept

Copy constructor.

◆ ~TfException()

TfException::~TfException ( )
throw (
)
inlinevirtual

Destructor.

Member Function Documentation

◆ className()

QString TfException::className ( ) const
inlinevirtual

Returns exception class name.

Reimplemented in RuntimeException, SecurityException, SqlException, KvsException, ClientErrorException, and StandardException.

◆ clone()

Exception * TfException::clone ( ) const
inlinevirtual

Creates and returns a deep copy of the current data.

Reimplemented in RuntimeException, SecurityException, SqlException, KvsException, ClientErrorException, and StandardException.

◆ fileName()

QString TfException::fileName ( ) const
inline

Returns the file name.

◆ lineNumber()

int TfException::lineNumber ( ) const
inline

Return the line number.

◆ message()

QString TfException::message ( ) const
inline

Returns the message.

◆ raise()

void TfException::raise ( ) const
inlinevirtual

◆ what()

virtual const char * TfException::what ( ) const
inlineoverridevirtualnoexcept

Member Data Documentation

◆ file

QString TfException::file
protected

◆ line

int TfException::line {0}
protected

◆ msg

QString TfException::msg
protected

◆ whatmsg

QByteArray TfException::whatmsg
protected

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