#include <casacore/casa/aips.h>
#include <casacore/casa/BasicSL/String.h>
#include <exception>
#include <sys/types.h>
Go to the source code of this file.
|
| casacore |
| this file contains all the compiler specific defines
|
|
|
#define | CASATHROW(exc, arg) |
| Throw the given exception with a string composed of various arguments. More...
|
|
#define | AssertCc(c) |
| The Assert macro is an alias to the standard assert macro when NDEBUG is defined. More...
|
|
#define | AssertAlways(c) |
|
#define | WarnCc(m) |
|
#define | AssertOrWarn(c, m) |
| Asserts when in debug build and issues a warning message to the log in release. More...
|
|
#define | ThrowCc(m) |
|
#define | ThrowIf(c, m) |
| Throw an AipsError exception if the condition is true. More...
|
|
#define | ThrowIfError(c, m) |
| Throw an AipsError exception if the system error code is not 0. More...
|
|
#define | Rethrow(e, m) |
| Repackage and rethrow an AipsError exception. More...
|
|
#define | RETHROW(X) |
|
◆ AssertAlways
#define AssertAlways |
( |
|
c | ) |
|
◆ AssertCc
The Assert macro is an alias to the standard assert macro when NDEBUG is defined.
When NDEBUG is not defined (release build) then a throw is used to report the error.
Definition at line 57 of file Error.h.
◆ AssertOrWarn
#define AssertOrWarn |
( |
|
c, |
|
|
|
m |
|
) |
| |
Asserts when in debug build and issues a warning message to the log in release.
Definition at line 73 of file Error.h.
◆ CASATHROW
#define CASATHROW |
( |
|
exc, |
|
|
|
arg |
|
) |
| |
Throw the given exception with a string composed of various arguments.
E.g.
CASATHROW (AipsError,
"integer=" << myint <<
", float=" << myfloat);
#define CASATHROW(exc, arg)
Throw the given exception with a string composed of various arguments.
Definition at line 45 of file Error.h.
◆ Rethrow
Repackage and rethrow an AipsError exception.
Definition at line 96 of file Error.h.
◆ RETHROW
◆ ThrowCc
◆ ThrowIf
Throw an AipsError exception if the condition is true.
Definition at line 89 of file Error.h.
◆ ThrowIfError
#define ThrowIfError |
( |
|
c, |
|
|
|
m |
|
) |
| |
Throw an AipsError exception if the system error code is not 0.
It adds the message for that error code to the exception text.
Definition at line 93 of file Error.h.
◆ WarnCc