with_catch (public, deprecated)

 with_catch error_var body on_error

Defined in packages/acs-tcl/tcl/deprecated-procs.tcl

Deprecated. Invoking this procedure generates a warning.

execute code in body with the catch errorMessage in error_var and if there is a nonzero return code from body execute the on_error block. DEPRECATED: does not comply with OpenACS naming convention and can be replaced with better api such as ad_try or native Tcl constructs such as ::try (8.6)

Parameters:
error_var (required)
body (required)
on_error (required)
See Also:

Testcases:
No testcase defined.
[ show source ]
Show another procedure: