43 #define OGDF_FLUSH_OUTPUTS \ 44 std::cout << std::flush, ::ogdf::Logger::sfout() << std::flush 55 #define OGDF_THROW_PARAM(CLASS, PARAM) \ 56 OGDF_FLUSH_OUTPUTS, throw CLASS(PARAM) 65 #define OGDF_THROW(CLASS) \ 66 OGDF_FLUSH_OUTPUTS, throw CLASS() 69 # undef OGDF_THROW_PARAM 70 # define OGDF_THROW_PARAM(CLASS, PARAM) \ 71 OGDF_FLUSH_OUTPUTS, throw CLASS(PARAM, __FILE__, __LINE__) 73 # define OGDF_THROW(CLASS) \ 74 OGDF_FLUSH_OUTPUTS, throw CLASS(__FILE__, __LINE__) 178 explicit Exception(
const char *file =
nullptr,
int line = -1) :
187 const char *
file()
const {
return m_file; }
193 int line()
const {
return m_line; }
259 const char *file =
nullptr,
262 m_exceptionCode(code)
267 const char *file =
nullptr,
288 const char *file =
nullptr,
291 m_exceptionCode(code)
296 const char *file =
nullptr,
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.
#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.
LibraryNotSupportedException(LibraryNotSupportedCode code, const char *file=nullptr, int line=-1)
Constructs a library not supported 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.
AlgorithmFailureCode m_exceptionCode
The error code specifying the exception.
NoStdComparerException(const char *file=nullptr, int line=-1)
Constructs a no standard comparer available exception.
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...
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.
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.
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.
external face not correct