Package de.pangaea.metadataportal.utils
Class LoggingErrorListener
- java.lang.Object
-
- de.pangaea.metadataportal.utils.LoggingErrorListener
-
- All Implemented Interfaces:
ErrorListener
public final class LoggingErrorListener extends Object implements ErrorListener
Helper class to correctly logTransformerException
s with Commons Logging.- Author:
- Uwe Schindler
-
-
Constructor Summary
Constructors Constructor Description LoggingErrorListener(Class<?> c)
A error listener using the supplied class name as log target.LoggingErrorListener(org.apache.commons.logging.Log log)
A error listener using the supplied Commons Logging instance as log target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(TransformerException e)
Just throwse
.void
fatalError(TransformerException e)
Just throwse
.void
warning(TransformerException e)
Logs message and location with WARN method.
-
-
-
Constructor Detail
-
LoggingErrorListener
public LoggingErrorListener(org.apache.commons.logging.Log log)
A error listener using the supplied Commons Logging instance as log target.
-
LoggingErrorListener
public LoggingErrorListener(Class<?> c)
A error listener using the supplied class name as log target.
-
-
Method Detail
-
error
public void error(TransformerException e) throws TransformerException
Just throwse
.- Specified by:
error
in interfaceErrorListener
- Throws:
TransformerException
-
fatalError
public void fatalError(TransformerException e) throws TransformerException
Just throwse
.- Specified by:
fatalError
in interfaceErrorListener
- Throws:
TransformerException
-
warning
public void warning(TransformerException e) throws TransformerException
Logs message and location with WARN method.- Specified by:
warning
in interfaceErrorListener
- Throws:
TransformerException
-
-