Top Description Fields Constructors Methods
org.apache.xerces.xpointer

pack-priv final Class XPointerErrorHandler

extends Object
implements XMLErrorHandler
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xni.parser.XMLErrorHandler
Imports
java.io.PrintWriter, org.apache.xerces.xni.XNIException, org.apache.xerces.xni.parser.XMLErrorHandler, .XMLParseException

The Default XPointer error handler used by the XInclude implementation. XPointer error's are thrown so that they may be caught by the XInclude implementation and reported as resource errors.
Version
$Id: XPointerErrorHandler.java 603808 2007-12-13 03:44:48Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected PrintWriter
fOut

Print writer.

Constructor Summary

AccessConstructor and Description
public
XPointerErrorHandler()

Constructs an error handler that prints error messages to System.err.

public
XPointerErrorHandler(PrintWriter out)

Constructs an error handler that prints error messages to the specified PrintWriter

Method Summary

Modifier and TypeMethod 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 relevant 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.
ex
)

Implements org.apache.xerces.xni.parser.XMLErrorHandler.error.

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 relevant 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.
ex
)

Implements org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

Fatal error.
private void
printError(String type, XMLParseException ex)

Prints the error message.

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 relevant 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.
ex
)

Implements org.apache.xerces.xni.parser.XMLErrorHandler.warning.

Warning.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fOutback to summary
protected PrintWriter fOut

Print writer.

Constructor Detail

XPointerErrorHandlerback to summary
public XPointerErrorHandler()

Constructs an error handler that prints error messages to System.err.

XPointerErrorHandlerback to summary
public XPointerErrorHandler(PrintWriter out)

Constructs an error handler that prints error messages to the specified PrintWriter

Method Detail

errorback to summary
public void error(String domain, String key, XMLParseException ex) throws XNIException

Implements org.apache.xerces.xni.parser.XMLErrorHandler.error.

Error.

Parameters
domain:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.error.

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 relevant specification or document pertaining to this error.

key:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.error.

The error key. This key can be any string and is implementation dependent.

ex:XMLParseException

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.error.

Exception.

Exceptions
XNIException:

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.error.

Thrown to signal that the parser should stop parsing the document.

fatalErrorback to summary
public void fatalError(String domain, String key, XMLParseException ex) throws XNIException

Implements org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

Fatal error.

Parameters
domain:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

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 relevant specification or document pertaining to this fatal error.

key:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

The fatal error key. This key can be any string and is implementation dependent.

ex:XMLParseException

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

Exception.

Exceptions
XNIException:

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.fatalError.

Thrown to signal that the parser should stop parsing the document.

printErrorback to summary
private void printError(String type, XMLParseException ex)

Prints the error message.

warningback to summary
public void warning(String domain, String key, XMLParseException ex) throws XNIException

Implements org.apache.xerces.xni.parser.XMLErrorHandler.warning.

Warning.

Parameters
domain:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.warning.

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 relevant specification or document pertaining to this warning.

key:String

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.warning.

The warning key. This key can be any string and is implementation dependent.

ex:XMLParseException

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.warning.

Exception.

Exceptions
XNIException:

Doc from org.apache.xerces.xni.parser.XMLErrorHandler.warning.

Thrown to signal that the parser should stop parsing the document.