Package com.google.common.eventbus
Class EventBus.LoggingHandler
java.lang.Object
com.google.common.eventbus.EventBus.LoggingHandler
- All Implemented Interfaces:
SubscriberExceptionHandler
- Enclosing class:
- EventBus
Simple logging handler for subscriber exceptions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleException(Throwable exception, SubscriberExceptionContext context) Handles exceptions thrown by subscribers.private static Loggerlogger(SubscriberExceptionContext context) private static Stringmessage(SubscriberExceptionContext context)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LoggingHandler
LoggingHandler()
-
-
Method Details
-
handleException
Description copied from interface:SubscriberExceptionHandlerHandles exceptions thrown by subscribers.- Specified by:
handleExceptionin interfaceSubscriberExceptionHandler
-
logger
-
message
-