@ThreadSafe public class CatcherL<S> extends Object implements Catcher<S>
| Constructor and Description |
|---|
CatcherL(Level _loggingLevel)
Constructs a CatcherL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
catchError(S source,
Error r)
Immediately re-throws the error.
|
void |
catchException(S source,
Exception x)
Logs a full stack trace of the exception, using the source's associated logger.
|
protected void |
log(S source,
Throwable t)
Logs a full stack trace of the throwable, using the source's associated logger.
|
Level |
loggingLevel()
The level at which caught exceptions are logged.
|
public CatcherL(Level _loggingLevel)
loggingLevel()public final Level loggingLevel()
public void catchError(S source, Error r)
catchError in interface Catcher<S>source - The logical source of the error.public void catchException(S source, Exception x)
catchException in interface Catcher<S>source - The logical source of the exception.