Begin a block of error handling code¶
SAF_CATCH_ERR
is a macro defined in saf.h.
Synopsis:
-
SAF_CATCH_ERR
(err)¶
Description: Use this macro to demarcate the beginning of a block of code that catches a specific error, err
, in the
error catching portion of a TRY
/CATCH
block
Issues: I am not sure I have confirmed that the catching does, in fact, fall through from a specific catch
to a next specific catch or to the ALL
case?
If we changed the SAF__CATCH_ERR
macro to test the bit(s) of the argument, rather than equality
we’d be able to catch several specific errors in that block.
See Also:
- Error Handling: Introduction for current chapter