Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for handleException (0.12 sec)

  1. guava/src/com/google/common/eventbus/SubscriberExceptionHandler.java

     * Handler for exceptions thrown by event subscribers.
     *
     * @since 16.0
     */
    @ElementTypesAreNonnullByDefault
    public interface SubscriberExceptionHandler {
      /** Handles exceptions thrown by subscribers. */
      void handleException(Throwable exception, SubscriberExceptionContext context);
    Registered: 2024-11-01 12:43
    - Last Modified: 2021-04-22 13:05
    - 928 bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           *   cause if this Future has failed.
           *
           * - And this future *has* failed: This method is called only from handleException (through
           *   getOrInitSeenExceptions). handleException tried to call setException and failed, so
           *   either this Future was cancelled (which we ruled out with the isCancelled check above),
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-25 13:13
    - 16.2K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/exception/ExceptionHandler.java

     */
    package org.apache.maven.exception;
    
    /**
     * Transform an exception into useful end-user message.
     *
     * @since 3.0-alpha-3
     */
    public interface ExceptionHandler {
        ExceptionSummary handleException(Throwable e);
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 1023 bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/SubscriberExceptionHandler.java

     * Handler for exceptions thrown by event subscribers.
     *
     * @since 16.0
     */
    @ElementTypesAreNonnullByDefault
    public interface SubscriberExceptionHandler {
      /** Handles exceptions thrown by subscribers. */
      void handleException(Throwable exception, SubscriberExceptionContext context);
    Registered: 2024-11-01 12:43
    - Last Modified: 2021-04-22 13:05
    - 928 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           *
           * Fortunately, exceptions rarely contain references to expensive resources.
           */
    
          //
          seenExceptionsLocal = newConcurrentHashSet();
          /*
           * Other handleException() callers may see this as soon as we publish it. We need to populate
           * it with the initial failure before we do, or else they may think that the initial failure
           * has never been seen before.
           */
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-05-28 20:40
    - 8.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           *
           * Fortunately, exceptions rarely contain references to expensive resources.
           */
    
          //
          seenExceptionsLocal = newConcurrentHashSet();
          /*
           * Other handleException() callers may see this as soon as we publish it. We need to populate
           * it with the initial failure before we do, or else they may think that the initial failure
           * has never been seen before.
           */
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-05-28 20:40
    - 8.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        final EventBus eventBus =
            new EventBus(
                new SubscriberExceptionHandler() {
                  @Override
                  public void handleException(Throwable exception, SubscriberExceptionContext context) {
                    throw new RuntimeException();
                  }
                });
        final Object subscriber =
            new Object() {
              @Subscribe
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-17 15:16
    - 11.2K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

    /**
     * Transform an exception into useful end-user message.
     */
    @Named
    @Singleton
    public class DefaultExceptionHandler implements ExceptionHandler {
        @Override
        public ExceptionSummary handleException(Throwable exception) {
            return handle("", exception);
        }
    
        private ExceptionSummary handle(String message, Throwable exception) {
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 10.9K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    }
                    return doInvoke(context);
                } catch (ExitException e) {
                    return e.exitCode;
                } catch (Exception e) {
                    throw handleException(context, e);
                }
            } finally {
                Thread.currentThread().setContextClassLoader(oldCL);
                System.setProperties(oldProps);
            }
        }
    
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 38K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                List<MavenProject> failedProjects = new ArrayList<>();
    
                for (Throwable exception : result.getExceptions()) {
                    ExceptionSummary summary = handler.handleException(exception);
                    logSummary(context, summary, references, "");
    
                    if (exception instanceof LifecycleExecutionException) {
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 29.8K bytes
    - Viewed (0)
Back to top