public class SwallowedExceptionLogger extends Object implements SwallowedExceptionListener
Constructor and Description |
---|
SwallowedExceptionLogger(org.datanucleus.util.NucleusLogger log)
Create a SwallowedExceptionLogger with the given logger.
|
SwallowedExceptionLogger(org.datanucleus.util.NucleusLogger 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(org.datanucleus.util.NucleusLogger log)
log
- loggerpublic SwallowedExceptionLogger(org.datanucleus.util.NucleusLogger log, boolean logExpiredConnections)
log
- loggerlogExpiredConnections
- false suppresses logging of expired connection eventspublic void onSwallowException(Exception e)
SwallowedExceptionListener
onSwallowException
in interface SwallowedExceptionListener
e
- The exception that was swallowedCopyright © 2019. All rights reserved.