catch — wraps core command catch and handles in a special way fake error conditions resulting from calls to exit and abort_page
script
? ?error_code_var_name
? ?options_var_name
?::rivet::catch is a utility command wrapping of the core language's same command. Within mod_rivet a script execution can be interrupted by either calling ::rivet::exit or ::rivet::abort_page that return an error code and hand the execution down to any AbortScript and eventually to AfterEveryScript. Any procedure fired under control of the core ::catch would be trapped and the error code should be checked and in case the error should be confirmed. ::rivet::catch checks for these conditions and in case handles the condition in a proper way interrupting the execution and returning control to mod_rivet which in turn calls AbortScript
![]() | Note |
---|---|
This command is not exported from the ::rivet namespace and therefore has to be fully qualified. |