[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Error Reporting |
Exceptions and assertions provided by VIGRA
#include <vigra/error.hxx>
VIGRA defines the following exception classes:
The following associated macros throw the corresponding exception if their PREDICATE evaluates to 'false
':
The MESSAGE is passed to the exception and can be retrieved via the overloaded member function 'exception.what()
'. If the compiler flag 'NDEBUG
' is not defined, the file name and line number of the error are automatically included in the message. The macro
is identical to vigra_precondition()
except that it is completely removed when 'NDEBUG
' is defined. This is useful for test that are only needed during debugging, such as array index bound checking. The following macro
unconditionally throws a 'std::runtime_error
' constructed from the message (along with file name and line number, if NDEBUG is not set).
Usage:
Include-File: <vigra/error.hxx>
Namespace: vigra (except for the macros, of course)
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|