ad_return_error (public)

 ad_return_error title explanation

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

Returns a page with the HTTP 500 (Error) code, along with the given title and explanation. Should be used when an unexpected error is detected while processing a page.

Parameters:
title (required)
explanation (required)

Testcases:
No testcase defined.
Source code:
    if {[ns_conn isconnected]} {
        ad_return_exception_page 500 $title $explanation
    } else {
        ns_log error "ad_return_error called without a connection: $title\n$explanation"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: