mbfl_exceptional_condition
¶Print on stdout
a description of the exceptional–condition CND. The description is
composed using the who
and message
attributes as follows:
printf -v DESCRIPTION '%s: %s\n' WHO message
As special cases, if CND is of type:
mbfl_warning_condition_t
The string DESCRIPTION is handed to mbfl_message_warning_printf()
.
mbfl_error_condition_t
The string DESCRIPTION is handed to mbfl_message_error_printf()
.
Usage example:
mbfl_default_object_declare(CND) mbfl_runtime_error_condition_make _(CND) 'someone' 'bad thing' mbfl_exceptional_condition_print _(CND) -| script: error: someone: bad thing
Return true if CND is continuable; otherwise return false.
Usage example:
mbfl_default_object_declare(CND) mbfl_runtime_error_condition_make _(CND) 'someone' 'bad thing' mbfl_exceptional_condition_is_continuable _(CND) ⇒ 0
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.