Base class of all ogdf exceptions. More...
#include <ogdf/basic/exceptions.h>
Public Member Functions | |
| Exception (const char *file=NULL, int line=-1) | |
| Constructs an exception. | |
| const char * | file () |
| Returns the name of the source file where exception was thrown. | |
| int | line () |
| Returns the line number where the exception was thrown. | |
Private Attributes | |
| const char * | m_file |
| Source file where exception occurred. | |
| int | m_line |
| Line number where exception occurred. | |
Base class of all ogdf exceptions.
Definition at line 160 of file exceptions.h.
| ogdf::Exception::Exception | ( | const char * | file = NULL, |
|
| int | line = -1 | |||
| ) | [inline] |
Constructs an exception.
| file | is the name of the source file where exception was thrown. | |
| line | is the line number in the source file where the exception was thrown. |
Definition at line 173 of file exceptions.h.
| const char* ogdf::Exception::file | ( | ) | [inline] |
Returns the name of the source file where exception was thrown.
Returns a null pointer if the name of the source file is unknown.
Definition at line 182 of file exceptions.h.
| int ogdf::Exception::line | ( | ) | [inline] |
Returns the line number where the exception was thrown.
Returns -1 if the line number is unknown.
Definition at line 188 of file exceptions.h.
const char* ogdf::Exception::m_file [private] |
Source file where exception occurred.
Definition at line 164 of file exceptions.h.
int ogdf::Exception::m_line [private] |
Line number where exception occurred.
Definition at line 165 of file exceptions.h.