Water 5-Flow Control and Boolean-Error Handling
method error
Contract
Return typewob
No input parameters.
Parameter kindDefault valueType
Other unkeyed argumentsopt with ekind of mixedwob
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:&#13;
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.