Provides macros and utilities for exception handling.
More...
#include <exception>
#include <string>
#include <vector>
#include <ostream>
#include <chrono>
#include <thread>
#include <type_traits>
#include <boost/stacktrace.hpp>
#include <boost/filesystem.hpp>
#include <boost/core/demangle.hpp>
Go to the source code of this file.
|
| #define | CII_THROW(exceptionType_t, ...) |
| | Throw exception with information about the throw location. More...
|
| |
| #define | CII_THROW_WITH_NESTED(exceptionType_t, nested_exception, ...) |
| | Throw exception with information about the throw location. More...
|
| |
Provides macros and utilities for exception handling.
- Copyright
- ESO - European Southern Observatory
◆ CII_THROW
| #define CII_THROW |
( |
|
exceptionType_t, |
|
|
|
... |
|
) |
| |
Value: { \
throw CreateExceptionObject<exceptionType_t>(0, __FILE__, __LINE__, __FUNCTION__, \
__VA_ARGS__); \
}
Throw exception with information about the throw location.
- Parameters
-
| exceptionType_t | type of the exception we want to throw |
| ... | arguments of the exception |
◆ CII_THROW_WITH_NESTED
| #define CII_THROW_WITH_NESTED |
( |
|
exceptionType_t, |
|
|
|
nested_exception, |
|
|
|
... |
|
) |
| |
Value: { \
exceptionType_t throwing_exception = CreateExceptionObject<exceptionType_t>( \
nested_exception, __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); \
std::throw_with_nested(throwing_exception); \
}
Throw exception with information about the throw location.
- Parameters
-
| exceptionType_t | type of the exception we want to throw |
| nested_exception | type of the exception we want to nest |
| ... | arguments of the exception |
◆ operator<<()