Package com.google.common.eventbus
Class EventBus.LoggingHandler
- java.lang.Object
-
- com.google.common.eventbus.EventBus.LoggingHandler
-
- All Implemented Interfaces:
SubscriberExceptionHandler
- Enclosing class:
- EventBus
static final class EventBus.LoggingHandler extends java.lang.Object implements SubscriberExceptionHandler
Simple logging handler for subscriber exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static EventBus.LoggingHandlerINSTANCE
-
Constructor Summary
Constructors Constructor Description LoggingHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleException(java.lang.Throwable exception, SubscriberExceptionContext context)Handles exceptions thrown by subscribers.private static java.util.logging.Loggerlogger(SubscriberExceptionContext context)private static java.lang.Stringmessage(SubscriberExceptionContext context)
-
-
-
Field Detail
-
INSTANCE
static final EventBus.LoggingHandler INSTANCE
-
-
Method Detail
-
handleException
public void handleException(java.lang.Throwable exception, SubscriberExceptionContext context)Description copied from interface:SubscriberExceptionHandlerHandles exceptions thrown by subscribers.- Specified by:
handleExceptionin interfaceSubscriberExceptionHandler
-
logger
private static java.util.logging.Logger logger(SubscriberExceptionContext context)
-
message
private static java.lang.String message(SubscriberExceptionContext context)
-
-