Package net.sf.saxon.lib
Class DelegatingErrorListener
- java.lang.Object
-
- net.sf.saxon.lib.DelegatingErrorListener
-
- All Implemented Interfaces:
ErrorListener,UnfailingErrorListener
public class DelegatingErrorListener extends Object implements UnfailingErrorListener
UnfailingErrorListener is an implementation of the JAXP ErrorListener interface that wraps a supplied ErrorListener and never throws an exception
-
-
Constructor Summary
Constructors Constructor Description DelegatingErrorListener(ErrorListener base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(TransformerException exception)voidfatalError(TransformerException exception)ErrorListenergetBaseErrorListener()Get the ErrorListener that this DelegatingErrorListener delegates to.voidwarning(TransformerException exception)
-
-
-
Constructor Detail
-
DelegatingErrorListener
public DelegatingErrorListener(ErrorListener base)
-
-
Method Detail
-
warning
public void warning(TransformerException exception)
- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfaceUnfailingErrorListener
-
error
public void error(TransformerException exception)
- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfaceUnfailingErrorListener
-
fatalError
public void fatalError(TransformerException exception)
- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfaceUnfailingErrorListener
-
getBaseErrorListener
public ErrorListener getBaseErrorListener()
Get the ErrorListener that this DelegatingErrorListener delegates to.- Returns:
- the ErrorListener originally supplied when this DelegatingErrorListener was created.
-
-