ad_return_exception_page (public)
ad_return_exception_page status title explanation
Defined in packages/acs-tcl/tcl/defs-procs.tcl
Returns an exception page.
- Parameters:
- status (required)
- HTTP status to be returned (e.g. 500, 404)
- title (required)
- Title to be used for the error (will be shown to user)
- explanation (required)
- Explanation for the exception.
- Author:
- Unknown
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set error_template [parameter::get_from_package_key -package_key "acs-tcl" -parameter "ReturnError" -default "/packages/acs-tcl/lib/ad-return-error"] set page [ad_parse_template -params [list [list title $title] [list explanation $explanation]] $error_template] if {$status >= 400 && [string match {*; MSIE *} [ns_set iget [ad_conn headers] User-Agent]] && [string length $page] < 512 } { append page [string repeat " " [expr {513 - [string length $page]}]] } ns_return $status text/html $page # raise abortion flag, e.g., for templating set ::request_aborted [list $status $title]XQL Not present: Generic, PostgreSQL, Oracle