51 #define OGDF_THROW_PARAM(CLASS, PARAM) cout<<flush,Logger::sfout()<<flush,throw CLASS ( PARAM ) 60 #define OGDF_THROW(CLASS) cout<<flush,Logger::sfout()<<flush,throw CLASS ( ) 63 # undef OGDF_THROW_PARAM 64 # define OGDF_THROW_PARAM(CLASS, PARAM) cout<<flush,Logger::sfout()<<flush,throw CLASS ( PARAM , __FILE__ , __LINE__ ) 66 # define OGDF_THROW(CLASS) cout<<flush,Logger::sfout()<<flush,throw CLASS ( __FILE__ , __LINE__ ) 209 const char *
file()
const {
return m_file; }
215 int line()
const {
return m_line; }
281 const char *file =
nullptr,
284 m_exceptionCode(code)
289 const char *file =
nullptr,
314 const char *file =
nullptr,
317 m_exceptionCode(code)
322 const char *file =
nullptr,
345 const char *file =
nullptr,
348 m_exceptionCode(code)
353 const char *file =
nullptr,
Exception thrown when preconditions are violated.
graph is not twoconnected
PreconditionViolatedCode
Error code for a violated precondition.
PreconditionViolatedCode exceptionCode() const
Returns the error code of the exception.
LibraryNotSupportedCode
Code for the library which was intended to get used, but its use is not supported.
TypeNotSupportedException(const char *file=nullptr, int line=-1)
Constructs a type-not-supported exception.
graph is not a copy of the corresponding graph
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
DynamicCastFailedException(const char *file=nullptr, int line=-1)
Constructs a dynamic cast failed exception.
int m_line
Line number where exception occurred.
LibraryNotSupportedCode exceptionCode() const
Returns the error code of the exception.
AlgorithmFailureCode
Code for an internal failure condition.
AlgorithmFailureCode exceptionCode() const
Returns the error code of the exception.
hierarchies are not acyclic
graph contains a self-loop
LibraryNotSupportedException(LibraryNotSupportedCode code, const char *file=nullptr, int line=-1)
Constructs a library not supported exception.
PreconditionViolatedCode m_exceptionCode
The error code specifying the exception.
crossing forbidden but necessary
Exception thrown when result of cast is 0.
const char * m_file
Source file where exception occurred.
Base class of all ogdf exceptions.
LibraryNotSupportedException(const char *file=nullptr, int line=-1)
Constructs a library not supported exception.
LibraryNotSupportedCode m_exceptionCode
The error code specifying the exception.
min-cost flow could not find a legal flow
AlgorithmFailureException(const char *file=nullptr, int line=-1)
Constructs an algorithm failure exception.
datastructure is already full
AlgorithmFailureCode m_exceptionCode
The error code specifying the exception.
NoStdComparerException(const char *file=nullptr, int line=-1)
Constructs a no standard comparer available exception.
hierarchies are not only trees
Exception thrown when a data type is not supported by a generic function.
Contains logging functionality.
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing...
PreconditionViolatedException(PreconditionViolatedCode code, const char *file=nullptr, int line=-1)
Constructs a precondition violated exception.
Exception thrown when an external library shall be used which is not supported.
Exception thrown when not enough memory is available to execute an algorithm.
PreconditionViolatedException(const char *file=nullptr, int line=-1)
Constructs a precondition violated exception.
AlgorithmFailureException(AlgorithmFailureCode code, const char *file=nullptr, int line=-1)
Constructs an algorithm failure exception.
couldn't solve the problem
const char * file() const
Returns the name of the source file where exception was thrown.
Basic declarations, included by all source files.
int line() const
Returns the line number where the exception was thrown.
Exception(const char *file=nullptr, int line=-1)
Constructs an exception.
Exception thrown when a required standard comparer has not been specialized.
graph is not a rooted forest
function parameter is illegal
The namespace for all OGDF objects.
the used library doesn't support that function
InsufficientMemoryException(const char *file=nullptr, int line=-1)
Constructs an insufficient memory exception.
graph has not a single source
external face not correct
graph is not upward planar
graph is not a rooted tree