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
explanation

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xo::db::CrFolder Class ::xo::db::CrFolder (public) ad_return_error ad_return_error Class ::xo::db::CrFolder->ad_return_error ad_form ad_form (public) ad_form->ad_return_error forum::message::new forum::message::new (public) forum::message::new->ad_return_error packages/acs-admin/lib/become.tcl packages/acs-admin/ lib/become.tcl packages/acs-admin/lib/become.tcl->ad_return_error packages/acs-admin/lib/password-update.tcl packages/acs-admin/ lib/password-update.tcl packages/acs-admin/lib/password-update.tcl->ad_return_error ad_return_exception_page ad_return_exception_page (public) ad_return_error->ad_return_exception_page

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: