ad_return_complaint (public)

 ad_return_complaint exception_count exception_text

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

Return a page complaining about the user's input (as opposed to an error in our software, for which ad_return_error is more appropriate)

exception_count - Number of exceptions. Used to say either 'a problem' or 'some problems'.
exception_text - HTML chunk to go inside an UL tag with the error messages.

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xo::Context Class ::xo::Context (public) ad_return_complaint ad_return_complaint Class ::xo::Context->ad_return_complaint Class ::xowiki::includelet::categories Class ::xowiki::includelet::categories (public) Class ::xowiki::includelet::categories->ad_return_complaint ad_form ad_form (public) ad_form->ad_return_complaint calendar::item::edit calendar::item::edit (public) calendar::item::edit->ad_return_complaint calendar::item::new calendar::item::new (public) calendar::item::new->ad_return_complaint ad_parse_template ad_parse_template (public) ad_return_complaint->ad_parse_template

No testcase defined.
Source code:
    set complaint_template [parameter::get_from_package_key  -package_key "acs-tcl"  -parameter "ReturnComplaint"  -default "/packages/acs-tcl/lib/ad-return-complaint"]
    try {
        set html [ad_parse_template  -params [list [list exception_count $exception_count]  [list exception_text $exception_text]]  $complaint_template]
    } on error {} {
        set html [lang::util::localize $exception_text]

    ns_return 422 text/html $html

    # raise abortion flag, e.g., for templating
    set ::request_aborted [list 422 "Problem with Your Input"]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: