public class SwallowedExceptionLogger extends java.lang.Object implements SwallowedExceptionListener
Constructor and Description |
---|
SwallowedExceptionLogger(Log log)
Create a SwallowedExceptionLogger with the given logger.
|
SwallowedExceptionLogger(Log log,
boolean logExpiredConnections)
Create a SwallowedExceptionLogger with the given logger and expired connection logging property.
|
Modifier and Type | Method and Description |
---|---|
void |
onSwallowException(java.lang.Exception e)
This method is called every time the implementation unavoidably swallows
an exception.
|
public SwallowedExceptionLogger(Log log)
log
- loggerpublic SwallowedExceptionLogger(Log log, boolean logExpiredConnections)
log
- loggerlogExpiredConnections
- false suppresses logging of expired connection eventspublic void onSwallowException(java.lang.Exception e)
SwallowedExceptionListener
onSwallowException
in interface SwallowedExceptionListener
e
- The exception that was swallowedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.