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.LoggingHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description LoggingHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleException(java.lang.Throwable exception, SubscriberExceptionContext context)
Handles exceptions thrown by subscribers.private static java.util.logging.Logger
logger(SubscriberExceptionContext context)
private static java.lang.String
message(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:SubscriberExceptionHandler
Handles exceptions thrown by subscribers.- Specified by:
handleException
in interfaceSubscriberExceptionHandler
-
logger
private static java.util.logging.Logger logger(SubscriberExceptionContext context)
-
message
private static java.lang.String message(SubscriberExceptionContext context)
-
-