|
ERIS Pipeline Reference Manual 1.9.2
|
| #define | TRY |
| Beginning of a TRY-block. | |
| #define | CATCH |
| End of a TRY-block, beginning of a CATCH-block. | |
| #define | GET_NEW_ERROR(void) |
| Return new CPL error code. | |
| #define | RECOVER(void) |
| Recover the error state which was present during TRY (at the beginning of the try-block). | |
| #define | SET_ERROR(code) |
| Set a new error code. | |
| #define | SET_ERROR_MSG(code, msg) |
| Set a new error code together with a custom error message. | |
| #define | CHECK_ERROR_STATE(void) |
| Check the CPL error state, and exit the try-block if not CPL_ERROR_NONE. | |
| #define | CHECK_ERROR_STATE_MSG(msg) |
| Check the CPL error state, and exit the try-block if not CPL_ERROR_NONE. An additional error message using cpl_msg_error is "printed". | |
| #define | BRK_WITH_ERROR(code) |
| Set a new CPL error, and exit the try-block. | |
| #define | BRK_WITH_ERROR_MSG(code, ...) |
| Set a new CPL error, and exit the try-block. | |
| #define | BRK_IF_ERROR(function) |
| If function is or returns an error != CPL_ERROR_NONE, then the try-block is exited. | |
| #define | BRK_IF_NULL(function) |
| If function is or returns a NULL pointer, then the try-block is exited. | |
| #define | ERIS_IFU_TRY_EXIT_IF_NOT(condition) |
| If condition == 0, then the try-block is exited. | |
| #define | ERIS_IFU_TRY_EXIT(void) |
| The try-block is exited. | |
| #define | ASSURE(condition, error, ...) |
| error handling macro (from fors-pipeline) | |
| #define | CATCH_MSG() |
| Displays an error message. | |
| #define | CATCH_MSGS() |
| Displays an error message stack. | |
| #define ASSURE | ( | condition, | |
| error, | |||
| ... | |||
| ) |
error handling macro (from fors-pipeline)
| condition | boolean expression to evaluate |
| error | error to set |
Definition at line 409 of file eris_ifu_error.h.
| #define BRK_IF_ERROR | ( | function | ) |
If function is or returns an error != CPL_ERROR_NONE, then the try-block is exited.
Definition at line 339 of file eris_ifu_error.h.
| #define BRK_IF_NULL | ( | function | ) |
If function is or returns a NULL pointer, then the try-block is exited.
Definition at line 360 of file eris_ifu_error.h.
| #define BRK_WITH_ERROR | ( | code | ) |
Set a new CPL error, and exit the try-block.
Definition at line 306 of file eris_ifu_error.h.
| #define BRK_WITH_ERROR_MSG | ( | code, | |
| ... | |||
| ) |
Set a new CPL error, and exit the try-block.
Definition at line 322 of file eris_ifu_error.h.
| #define CATCH |
End of a TRY-block, beginning of a CATCH-block.
Please refer to TRY.
Definition at line 173 of file eris_ifu_error.h.
| #define CATCH_MSG | ( | ) |
Displays an error message.
Definition at line 427 of file eris_ifu_error.h.
| #define CATCH_MSGS | ( | ) |
Displays an error message stack.
Definition at line 445 of file eris_ifu_error.h.
| #define CHECK_ERROR_STATE | ( | void | ) |
Check the CPL error state, and exit the try-block if not CPL_ERROR_NONE.
Definition at line 266 of file eris_ifu_error.h.
| #define CHECK_ERROR_STATE_MSG | ( | msg | ) |
Check the CPL error state, and exit the try-block if not CPL_ERROR_NONE. An additional error message using cpl_msg_error is "printed".
Definition at line 286 of file eris_ifu_error.h.
| #define ERIS_IFU_TRY_EXIT | ( | void | ) |
The try-block is exited.
Definition at line 400 of file eris_ifu_error.h.
| #define ERIS_IFU_TRY_EXIT_IF_NOT | ( | condition | ) |
If condition == 0, then the try-block is exited.
Definition at line 380 of file eris_ifu_error.h.
| #define GET_NEW_ERROR | ( | void | ) |
Return new CPL error code.
Definition at line 198 of file eris_ifu_error.h.
| #define RECOVER | ( | void | ) |
Recover the error state which was present during TRY (at the beginning of the try-block).
Definition at line 213 of file eris_ifu_error.h.
| #define SET_ERROR | ( | code | ) |
Set a new error code.
Definition at line 225 of file eris_ifu_error.h.
| #define SET_ERROR_MSG | ( | code, | |
| msg | |||
| ) |
Set a new error code together with a custom error message.
Definition at line 246 of file eris_ifu_error.h.
| #define TRY |
Beginning of a TRY-block.
The macro TRY is to be used like a keyword in front of a deeper scope. This scope has to be followed by the macro CATCH. This means that TRY and CATCH build a frame around a code statement or a code scope, called the try-block.
The CATCH macro is to be followed by a statement or scope, which is only executed if a CPL error is set while reaching the CATCH macro, called the catch-block.
The try-block can be exited by using one of the macros below, for example with BRK_WITH_ERROR(). In this case, a jump to CATCH is performed, and the catch-block executed if an error is set.
The following constraints have to be fulfilled:
Definition at line 156 of file eris_ifu_error.h.