TreeFrogFramework  1.24
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 noexceptoverride
 

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::TfException ( const QString &  message,
const char *  fileName = "",
int  lineNumber = 0 
)
inlinenoexcept

Constructor.

TfException::TfException ( const TfException e)
inlinenoexcept

Copy constructor.

TfException::~TfException ( )
throw (
)
inlinevirtual

Destructor.

Member Function Documentation

QString TfException::className ( ) const
inlinevirtual

Returns exception class name.

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

Exception * TfException::clone ( ) const
inlinevirtual

Creates and returns a deep copy of the current data.

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

QString TfException::fileName ( ) const
inline

Returns the file name.

int TfException::lineNumber ( ) const
inline

Return the line number.

QString TfException::message ( ) const
inline

Returns the message.

void TfException::raise ( ) const
inlinevirtual
virtual const char* TfException::what ( ) const
inlineoverridevirtualnoexcept

Member Data Documentation

QString TfException::file
protected
int TfException::line {0}
protected
QString TfException::msg
protected
QByteArray TfException::whatmsg
protected

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