|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.gorman.xml.parse.AbstractListener<T>
ca.gorman.xml.parse.AbstractErrorListener<T>
public abstract class AbstractErrorListener<T extends Parser>
Listener for warnings, recoverable errors, and fatal errors.
| Constructor Summary | |
|---|---|
protected |
AbstractErrorListener()
Construct on default destination ( System.err). |
protected |
AbstractErrorListener(Writer writer)
Construct on a Writer as destination for error messages. |
| Method Summary | ||
|---|---|---|
void |
error(T parser,
String description,
Location location,
Exception exception)
Receive notification of a recoverable error.. |
|
void |
fatalError(T parser,
String description,
Location location,
Exception exception)
Receive notification of a non-recoverable error.. |
|
static
|
newInstance()
|
|
static
|
newInstance(Writer writer)
|
|
void |
warning(T parser,
String description,
Location location,
Exception exception)
Receive notification of a warning.. |
|
| Methods inherited from class ca.gorman.xml.parse.AbstractListener |
|---|
attributeDecl, cdata, characters, comment, doDocument, doDtd, doElement, doEntity, elementDecl, endPrefixMapping, externalEntityDecl, getExternalSubset, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractErrorListener(Writer writer)
Construct on a Writer as destination for error messages.
protected AbstractErrorListener()
Construct on default destination (System.err).
| Method Detail |
|---|
public static <T extends Parser> AbstractErrorListener<T> newInstance()
public static <T extends Parser> AbstractErrorListener<T> newInstance(Writer writer)
public void warning(T parser,
String description,
Location location,
Exception exception)
throws ListenerException,
IOException
Receive notification of a warning..
Reports the warning to System.err.
warning in interface MessageListener<T extends Parser>warning in class AbstractListener<T extends Parser>description - A summary of the warning information (may be an
empty String).location - Information about the location in the inputexception - Additional information from the underlying
parser. The information will depend on the
Parser implementation. The
parameter may be null, and the underlying
parser may not have actually thrown an
exception.parser - The Parser that invoked this
method
ListenerException
IOException
public void error(T parser,
String description,
Location location,
Exception exception)
throws ListenerException,
IOException
Receive notification of a recoverable error..
Reports the error to System.err.
error in interface MessageListener<T extends Parser>error in class AbstractListener<T extends Parser>description - A summary of the warning information (may be an
empty String).location - Information about the location in the inputexception - Additional information from the underlying
parser. The information will depend on the
Parser implementation. The
parameter may be null, and the underlying
parser may not have actually thrown an
exception.parser - The Parser that invoked this
method
ListenerException
IOException
public void fatalError(T parser,
String description,
Location location,
Exception exception)
throws ListenerException,
IOException
Receive notification of a non-recoverable error..
Reports the fatal error to System.err and throws
ListenerException with exception
as the cause.
fatalError in interface MessageListener<T extends Parser>fatalError in class AbstractListener<T extends Parser>description - A summary of the warning information (may be an
empty String).location - Information about the location in the inputexception - Additional information from the underlying
parser. The information will depend on the
Parser implementation. The
parameter may be null, and the underlying
parser may not have actually thrown an
exception.parser - The Parser that invoked this
method
ListenerException
IOException
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||