Water 5-Flow Control and Boolean-Error HandlingContract| Return type | wob | | No input parameters. | | Parameter kind | Default value | Type | | Other unkeyed arguments | opt with ekind of mixed | wob | | Water Contract<method error
_other_unkeyed=opt=wob=ekind.mixed="_body"/> | |
See also: try, warning, echo
Forces an execution error, placing its arguments and/or content into the variable error_object .
If executed within a <try /> block, error_object can be accessed within the
if_error parameter of the try to display the output result of the call to
error .
<try
if_error=<echo error_object />
>
<echo "did it"/>
<echo "did it2 "/>
<error "caught it"/>
<echo "did it3"/>
</try>
 | "Runtime error:
caught it" |
When this call to try is executed, the following occurs:
"did it" is printed on the console"did it2" is printed on the console"Runtime error: caught it" is printed on the console"did it3" is NOT printed because that call to echo is never executedThe result of executing if_error is returned from the try block.
© Copyright 2007 Clear Methods, Inc.