public class SwallowedExceptionLogger extends 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(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(Exception e)
SwallowedExceptionListeneronSwallowException in interface SwallowedExceptionListenere - The exception that was swallowedCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.