<@ERRORS> </@ERRORS>
Description
If more than one error occurs during
application file execution, Tango Server queues up the errors. <@ERRORS>,
in conjunction with <@ERROR>, allows you to iterate
over the list of errors. If the <@ERRORS></@ERRORS>
block is not used, information about the first error encountered is
returned by <@ERROR>.
Text between these tags is processed for
each error generated by the associated action. The tags are valid only
in an action's Error HTML or in an error.htx file.
The error.htx file
contains the default HTML to be returned when no Error HTML has been
specified for an action or when the error occurs before action
execution. Its location is specified by the defaultErrorFile
configuration variable.
Example
<H3>Error</H3>
An error occurred while processing your request:
<BR>
<@ERRORS>
Position: <B><@ERROR PART=POSITION></B><BR>
Class: <B><@ERROR PART=CLASS></B><BR>
Main Error Number: <B><@ERROR PART=NUMBER1></B><BR>
Secondary Error Number: <B><@ERROR PART=NUMBER2></B>
<BR>
Main Error Message: <B><@ERROR PART=MESSAGE1></B>
<BR>
Secondary Error Message: <B><@ERROR PART=MESSAGE2>
</B><BR>
</@ERRORS>
This example returns all of the error
information for each error encountered during the current action
execution.
See Also
defaultErrorFile
<@ERROR>
|