public class JerseyProcessingUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER |
private java.util.logging.Level |
logLevel |
Constructor and Description |
---|
JerseyProcessingUncaughtExceptionHandler()
Create new Jersey processing uncaught exception handler.
|
JerseyProcessingUncaughtExceptionHandler(java.util.logging.Level logLevel)
Create new Jersey processing uncaught exception handler.
|
Modifier and Type | Method and Description |
---|---|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
private static final java.util.logging.Logger LOGGER
private final java.util.logging.Level logLevel
public JerseyProcessingUncaughtExceptionHandler()
All uncaught exceptions will be logged using the WARNING
logging level.
public JerseyProcessingUncaughtExceptionHandler(java.util.logging.Level logLevel)
All uncaught exceptions will be logged using the supplied logging level.
logLevel
- custom logging level that should be used to log uncaught exceptions.