ad_return_exception_template (public)
ad_return_exception_template [ -status status ] [ -params params ] \ template
Defined in packages/acs-templating/tcl/acs-integration-procs.tcl
Return an exception template and abort the current script.
- Switches:
- -status (optional, defaults to
"500"
)- The HTTP status to return, by default HTTP 500 (Error)
- -params (optional)
- The parameters to pass to the template.
- Parameters:
- template (required)
- The template filename. Example:
ad_return_exception_template -params {errmsg {custom_message "My Message"}} some-template
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_return_exception_template
Source code: ns_return $status text/html [ad_parse_template -params $params $template] ad_script_abortXQL Not present: Generic, PostgreSQL, Oracle