Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SubscriberExceptionContext (1.8 sec)

  1. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import java.lang.reflect.Method;
    
    /**
     * Context for an exception thrown by a subscriber.
     *
     * @since 16.0
     */
    public class SubscriberExceptionContext {
      private final EventBus eventBus;
      private final Object event;
      private final Object subscriber;
      private final Method subscriberMethod;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

      private static final class RecordingSubscriberExceptionHandler
          implements SubscriberExceptionHandler {
        private SubscriberExceptionContext context;
        private Throwable exception;
    
        @Override
        public void handleException(Throwable exception, SubscriberExceptionContext context) {
          this.exception = exception;
          this.context = context;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        public void handle(@Nullable Object unused) {}
    
        Subscriber toSubscriber() throws Exception {
          return Subscriber.create(eventBus, this, subscriberMethod());
        }
    
        SubscriberExceptionContext toContext() {
          return new SubscriberExceptionContext(eventBus, new Object(), this, subscriberMethod());
        }
    
        private static Method subscriberMethod() {
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/SubscriberExceptionHandler.java

     *
     * @since 16.0
     */
    public interface SubscriberExceptionHandler {
      /** Handles exceptions thrown by subscribers. */
      void handleException(Throwable exception, SubscriberExceptionContext context);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 894 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/Subscriber.java

          if (e.getCause() instanceof Error) {
            throw (Error) e.getCause();
          }
          throw e;
        }
      }
    
      /** Gets the context for the given event. */
      private SubscriberExceptionContext context(Object event) {
        return new SubscriberExceptionContext(bus, event, target, method);
      }
    
      @Override
      public final int hashCode() {
        return (31 + method.hashCode()) * 31 + System.identityHashCode(target);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/EventBus.java

        @Override
        public void handleException(Throwable exception, SubscriberExceptionContext context) {
          Logger logger = logger(context);
          if (logger.isLoggable(Level.SEVERE)) {
            logger.log(Level.SEVERE, message(context), exception);
          }
        }
    
        private static Logger logger(SubscriberExceptionContext context) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top