Accelerated Computation Engine
Public Member Functions | List of all members
EException Class Reference

#include <eexception.h>

Public Member Functions

QString functionName () const noexcept
 
QString fileName () const noexcept
 
int line () const noexcept
 
QString title () const noexcept
 
QString details () const noexcept
 
void setFunctionName (const QString &functionName) noexcept
 
void setFileName (const QString &fileName) noexcept
 
void setLine (int line) noexcept
 
void setTitle (const QString &title) noexcept
 
void setDetails (const QString &details) noexcept
 

Detailed Description

This handles all errors encountered in the ACE library and should be used by programs that use the ACE framework. This contains all information about where the exception was thrown along with a description about what the error. A macro is provided for creating exceptions that fills in the file name, function name, and line fields. This class is thrown as an exception on any ACE error. If the program using ACE does not catch a thrown error ACE itself will handle it, either reporting it to the user without crashing if in GUI mode or reporting it to the user and exiting if in console mode.

Member Function Documentation

◆ details()

QString EException::details ( ) const
noexcept

Returns the detailed description of what caused this exception.

Returns
Detailed description of what caused this exception.

◆ fileName()

QString EException::fileName ( ) const
noexcept

Returns the file name where this exception was thrown.

Returns
File name where this exception was thrown.

◆ functionName()

QString EException::functionName ( ) const
noexcept

Returns the function name where this exception was thrown.

Returns
Function name where this function was thrown.

◆ line()

int EException::line ( ) const
noexcept

Returns the line number where this exception was thrown.

Returns
Line number where this exception was thrown.

◆ setDetails()

void EException::setDetails ( const QString &  details)
noexcept

This sets the detailed description of what caused this exception.

Parameters
detailsDetailed description of what caused this exception.

◆ setFileName()

void EException::setFileName ( const QString &  fileName)
noexcept

Sets the file name where this exception is thrown. This should only be set where the exception is created and thrown, unless it is caught elsewhere, modified, and thrown again.

Parameters
fileNameFile name where this exception is thrown.

◆ setFunctionName()

void EException::setFunctionName ( const QString &  functionName)
noexcept

Sets the function name where this exception is thrown. This should only be set where the exception is created and thrown, unless it is caught elsewhere, modified, and thrown again.

Parameters
functionNameFunction name where this exception is thrown.

◆ setLine()

void EException::setLine ( int  line)
noexcept

Sets the line number where this exception is thrown. This should only be set where the exception is created and thrown, unless it is caught elsewhere, modified, and thrown again.

Parameters
lineLine number where this exception is thrown.

◆ setTitle()

void EException::setTitle ( const QString &  title)
noexcept

This sets the title describing the error that caused this exception.

Parameters
titleTitle describing what caused this exception.

◆ title()

QString EException::title ( ) const
noexcept

Returns the title describing the error that caused this exception.

Returns
Title describing the error that caused this exception.

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