XMLErrorHandler
and pass them down to SAX ErrorHandler.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | hadError
set to true if there was any error. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(String domain, String key, XMLParseException e)
Implements com. Reports an error. |
| public void | fatalError(String domain, String key, XMLParseException e)
Implements com. Report a fatal error. |
| protected abstract ErrorHandler | Returns: always return non-null valid object.Implemented by the derived class to return the actual
|
| public boolean | |
| public void | |
| public void | warning(String domain, String key, XMLParseException e)
Implements com. Reports a warning. |
| hadError | back to summary |
|---|---|
| private boolean hadError set to true if there was any error. | |
| ErrorHandlerAdaptor | back to summary |
|---|---|
| public ErrorHandlerAdaptor() | |
| error | back to summary |
|---|---|
| public void error(String domain, String key, XMLParseException e) Implements com. Doc from com. Reports an error. Errors are non-fatal and usually signify that the document is invalid with respect to its grammar(s). | |
| fatalError | back to summary |
|---|---|
| public void fatalError(String domain, String key, XMLParseException e) Implements com. Doc from com. Report a fatal error. Fatal errors usually occur when the document is not well-formed and signifies that the parser cannot continue normal operation. Note The error handler should always
throw an | |
| getErrorHandler | back to summary |
|---|---|
| protected abstract ErrorHandler getErrorHandler() Implemented by the derived class to return the actual
| |
| hadError | back to summary |
|---|---|
| public boolean hadError() returns if there was an error since the last invocation of the resetError method. | |
| reset | back to summary |
|---|---|
| public void reset() resets the error flag. | |
| warning | back to summary |
|---|---|
| public void warning(String domain, String key, XMLParseException e) Implements com. Doc from com. Reports a warning. Warnings are non-fatal and can be safely ignored by most applications. | |