Exception class.
More...
#include <deException.h>
◆ deException()
deException::deException |
( |
const char * |
name, |
|
|
const char * |
description, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
Create a new exception object.
- Parameters
-
[in] | name | Unique name to identify the exception. If NULL set to a default string. |
[in] | description | Description of the reason for the exception. If NULL set to a default string. |
[in] | file | Name of the source file where the exception occurred. If NULL set to a default string. |
[in] | line | Line number in file where the exception occurred. If NULL set to a default string. |
◆ ~deException()
virtual deException::~deException |
( |
| ) |
|
|
virtual |
Clean up exception object.
◆ AdditionalInformation()
virtual decStringList deException::AdditionalInformation |
( |
| ) |
const |
|
virtual |
Subclass specific additional information.
Default implementation returns an empty list.
◆ FormatOutput()
Format output into a list of strings.
Clears the list and adds the following entries:
- "Exception: {pName}"
- "Description: {pDescription}"
- "Source File: {pFile}"
- "Source Line: {pLine}"
- "BacktraceX: {pBacktrace[X]}"
- AdditionalInformation
◆ GetBacktrace()
◆ GetDescription()
const decString& deException::GetDescription |
( |
| ) |
const |
|
inline |
Description of the reason for the exception.
◆ GetFile()
const decString& deException::GetFile |
( |
| ) |
const |
|
inline |
Name of the source file where the exception occurred.
◆ GetLine()
int deException::GetLine |
( |
| ) |
const |
|
inline |
Line number in file where the exception occurred.
◆ GetName()
const decString& deException::GetName |
( |
| ) |
const |
|
inline |
Unique name to identify the exception.
◆ IsNamed()
bool deException::IsNamed |
( |
const char * |
name | ) |
const |
Test if the exception has the given name.
◆ PrintError()
void deException::PrintError |
( |
| ) |
const |
Display a formated output of the stored information.
Print each line obtained by FormatOutput to stdout.
The documentation for this class was generated from the following file: