ad_complaints_parse_error_strings (private)
ad_complaints_parse_error_strings errorstrings
Defined in packages/acs-tcl/tcl/tcl-documentation-procs.tcl
Parses the error-strings argument to ad_page_contract and stores the result in global variables, so it can be used by ad_complain.
- Parameters:
- errorstrings (required)
- Author:
- Lars Pind <lars@pinds.com>
- Created:
- 25 July 2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: array set ::ad_page_contract_error_string [list] foreach { errorkeys text } $errorstrings { foreach errorkey $errorkeys { set errorkeyv [split $errorkey ":"] if { [llength $errorkeyv] > 2 } { return -code error "Error name '$error' doesn't have the right format. It must be var\[:flag\]" } lassign $errorkeyv name flags if { $flags eq "" } { set ::ad_page_contract_error_string($name) $text } else { foreach flag [split $flags ","] { if { $flag ne "" } { set ::ad_page_contract_error_string($name:$flag) $text } else { set ::ad_page_contract_error_string($name) $text } } } } }XQL Not present: Generic, PostgreSQL, Oracle