public class RecordingExceptionHandler extends Object implements ExceptionHandler
| Constructor and Description |
|---|
RecordingExceptionHandler(LogLevel level,
Map<ExceptionKey,Integer> exceptionKeyCountMap,
boolean exceptionsOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
on(Class clazz,
String message,
Throwable thrown)
A method to call when an exception occurs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEnabled, on, onpublic RecordingExceptionHandler(LogLevel level, Map<ExceptionKey,Integer> exceptionKeyCountMap, boolean exceptionsOnly)
public void on(Class clazz, String message, Throwable thrown)
ExceptionHandleron in interface ExceptionHandlerclazz - the error is associated with, e.g. the one in which it was caughtmessage - any message associated with the error, or empty String.thrown - any Throwable caught, or null if there was no exception.Copyright © 2018. All rights reserved.