Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::Exception Class Reference

Base class of all ogdf exceptions. More...

#include <exceptions.h>

Inheritance diagram for ogdf::Exception:

ogdf::AlgorithmFailureException ogdf::DynamicCastFailedException ogdf::InsufficientMemoryException ogdf::LibraryNotSupportedException ogdf::PreconditionViolatedException

List of all members.

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.


Detailed Description

Base class of all ogdf exceptions.

Definition at line 152 of file exceptions.h.


Constructor & Destructor Documentation

ogdf::Exception::Exception ( const char *  file = NULL,
int  line = -1 
) [inline]

Constructs an exception.

Parameters:
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 165 of file exceptions.h.


Member Function Documentation

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 174 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 180 of file exceptions.h.


Member Data Documentation

const char* ogdf::Exception::m_file [private]

Source file where exception occurred.

Definition at line 156 of file exceptions.h.

int ogdf::Exception::m_line [private]

Line number where exception occurred.

Definition at line 157 of file exceptions.h.


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

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:07 2007 by doxygen 1.5.4.