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 TypeMethodDescriptionvoid
handleException
(Throwable exception, SubscriberExceptionContext context) Handles exceptions thrown by subscribers.private static Logger
logger
(SubscriberExceptionContext context) private static String
message
(SubscriberExceptionContext context)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LoggingHandler
LoggingHandler()
-
-
Method Details
-
handleException
Description copied from interface:SubscriberExceptionHandler
Handles exceptions thrown by subscribers.- Specified by:
handleException
in interfaceSubscriberExceptionHandler
-
logger
-
message
-