DOMErrorHandler
Modifier and Type | Class and Description |
---|---|
private static class | DOMErrorHandlerWrapper.
A convenience class for converting between internal error codes and DOM error types. |
Modifier and Type | Field and Description |
---|---|
pack-priv boolean | |
public Node | |
protected final DOMErrorImpl | |
protected DOMErrorHandler | |
protected final XMLErrorCode | fErrorCode
Error code for comparisons. |
protected PrintWriter |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | error(String
The domain of the error. The domain can be any
string but is suggested to be a valid URI. The
domain can be used to conveniently specify a web
site location of the relevent specification or
document pertaining to this error. domain, String The error key. This key can be any string and
is implementation dependent. key, XMLParseException Exception. exception)Implements com. Reports an error. |
public void | fatalError(String
The domain of the fatal error. The domain can be
any string but is suggested to be a valid URI. The
domain can be used to conveniently specify a web
site location of the relevent specification or
document pertaining to this fatal error. domain, String The fatal error key. This key can be any string
and is implementation dependent. key, XMLParseException Exception. exception)Implements com. Report a fatal error. |
public DOMErrorHandler | |
public boolean | handleError(DOMError
The error object that describes the error. This object
may be reused by the DOM implementation across multiple calls to
the error)handleError method.Implements org. This method is called on the error handler when an error occurs. |
private void | |
public void | |
public void | warning(String
The domain of the warning. The domain can be any
string but is suggested to be a valid URI. The
domain can be used to conveniently specify a web
site location of the relevent specification or
document pertaining to this warning. domain, String The warning key. This key can be any string and
is implementation dependent. key, XMLParseException Exception. exception)Implements com. Reports a warning. |
eStatus | back to summary |
---|---|
pack-priv boolean eStatus |
fCurrentNode | back to summary |
---|---|
public Node fCurrentNode |
fDOMError | back to summary |
---|---|
protected final DOMErrorImpl fDOMError |
fDomErrorHandler | back to summary |
---|---|
protected DOMErrorHandler fDomErrorHandler |
fErrorCode | back to summary |
---|---|
protected final XMLErrorCode fErrorCode Error code for comparisons. |
fOut | back to summary |
---|---|
protected PrintWriter fOut |
DOMErrorHandlerWrapper | back to summary |
---|---|
public DOMErrorHandlerWrapper() |
DOMErrorHandlerWrapper | back to summary |
---|---|
public DOMErrorHandlerWrapper(DOMErrorHandler domErrorHandler) |
error | back to summary |
---|---|
public void error(String domain, String key, XMLParseException exception) throws XNIException Implements 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 exception) throws XNIException Implements 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 |
---|---|
public DOMErrorHandler getErrorHandler() |
handleError | back to summary |
---|---|
public boolean handleError(DOMError error) Implements org. Doc from org. This method is called on the error handler when an error occurs.
|
printError | back to summary |
---|---|
private void printError(DOMError error) Prints the error message. |
setErrorHandler | back to summary |
---|---|
public void setErrorHandler(DOMErrorHandler errorHandler) Sets the DOM error handler. |
warning | back to summary |
---|---|
public void warning(String domain, String key, XMLParseException exception) throws XNIException Implements com. Reports a warning. Warnings are non-fatal and can be safely ignored by most applications.
|
Modifier and Type | Field and Description |
---|---|
private static final Map | fgDOMErrorTypeTable
Map for converting internal error codes to DOM error types. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static String |
fgDOMErrorTypeTable | back to summary |
---|---|
private static final Map<XMLErrorCode, String> fgDOMErrorTypeTable Map for converting internal error codes to DOM error types. |
DOMErrorTypeMap | back to summary |
---|---|
private DOMErrorTypeMap() |
getDOMErrorType | back to summary |
---|---|
public static String getDOMErrorType(XMLErrorCode error) |