continuable
of mbfl_exceptional_condition
¶Given a subclass of mbfl_exceptional_condition
we can use this attribute as follows:
mbfl_default_object_declare(CND) mbfl_declare_varref(CONT) mbfl_runtime_error_condition_make _(CND) 'someone' 'bad thing' mbfl_exceptional_condition_continuable_var _(CONT) _(CND) $CONT ⇒ true
mbfl_exceptional_condition_t
: continuable ¶A string representing a boolean:
This condition is continuable: the exception can be fixed, in which case script’s execution can continue.
This condition is non–continuable: the exception cannot be fixed, script’s execution must be terminated.
We must be careful in changing the default value of this attribute: some exceptional–conditions are meant to be non–continuable no matter what.
To cleanly terminate a script after a non–continuable exception has been raised: we can use the exit trap; Running scripts at exit–time. Location handlers can also be useful; Special location handlers.
mbfl_exceptional_condition_t
: mbfl_exceptional_condition_continuable_set CND CONTINUABLE ¶mbfl_exceptional_condition_t
: mbfl_exceptional_condition_continuable_var CONTINUABLE_RV CND ¶Class attribute accessor and mutator.
The parameter CONTINUABLE must be a string as accepted by
mbfl_string_normalise_boolean_var()
, otherwise an exceptional–condition of type
mbfl_invalid_object_attrib_value_condition
is raised;
Normalising strings
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.