Base class of all ogdf exceptions. More...
#include <ogdf/basic/exceptions.h>
Public Member Functions | |
Exception (const char *file=nullptr, int line=-1) | |
Constructs an exception. | |
const char * | file () const |
Returns the name of the source file where exception was thrown. | |
int | line () const |
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 162 of file exceptions.h.
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.
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 179 of file exceptions.h.
|
inline |
Returns the line number where the exception was thrown.
Returns -1 if the line number is unknown.
Definition at line 185 of file exceptions.h.
Source file where exception occurred.
Definition at line 164 of file exceptions.h.
|
private |
Line number where exception occurred.
Definition at line 165 of file exceptions.h.