|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IErrorReporter
An ErrorReporter acts as a container allowing a tag to gather up all errors reported by it's children
and report them as a single group. Typically, there should be a single active ErrorReporter
so all the errors on the page are reported in a single place. All error reporters must look at any parent
tags and also the CONTAINER_ERRORS request variable for an instance of ErrorReporter before
becoming the primary ErrorReporter. If another ErrorReporter is defined,
the tag should return false from the isReporting() method. Otherwise, the tag
may become the primary ErrorReporter. If a tag sets the CONTAINER_ERRORS request attribute,
it must clear this when processing it's doEndTag() method because it will not be
able to report errors after this point.
| Field Summary | |
|---|---|
static String |
CONTAINER_ERRORS
This is a request scoped attribute name which may contain an ErrorReporter instance. |
| Method Summary | |
|---|---|
void |
addError(AbstractPageError ape)
Add an error to this ErrorReporter. |
boolean |
isReporting()
This boolean indicates if an ErrorReporter is reporting errors or not. |
ArrayList |
returnErrors()
Return an ArrayList of the errors |
| Field Detail |
|---|
static final String CONTAINER_ERRORS
| Method Detail |
|---|
void addError(AbstractPageError ape)
ErrorReporter.
ape - the page error to add to the container.boolean isReporting()
ArrayList returnErrors()
ArrayList of all errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||