Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,285 for throwable (0.27 sec)

  1. android/guava/src/com/google/common/base/Throwables.java

       *
       * @since 20.0
       */
      public static void throwIfUnchecked(Throwable throwable) {
        checkNotNull(throwable);
        if (throwable instanceof RuntimeException) {
          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Throwables.java

       *
       * @since 20.0
       */
      public static void throwIfUnchecked(Throwable throwable) {
        checkNotNull(throwable);
        if (throwable instanceof RuntimeException) {
          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ExceptionPlaceholder.java

            if (!suppressed.isEmpty()) {
                for (Throwable throwable : suppressed) {
                    //noinspection Since15
                    reconstructed.addSuppressed(throwable);
                }
            }
        }
    
        private static List<? extends Throwable> extractCauses(Throwable throwable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

                } catch(Throwable throwable) {
                    onFailure(String.format("Failed to execute %s.", command), throwable);
                    throw new UndeclaredThrowableException(throwable);
                }
            }
    
            public void onFailure(String message, Throwable throwable) {
                // Capture or log all failures
                if (!failure.compareAndSet(null, throwable)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/ResolveExceptionAnalyzer.java

                    return true;
                }
            }
            return false;
        }
    
        public static boolean isCriticalFailure(Throwable throwable) {
            Throwable rootCause = Throwables.getRootCause(throwable);
            return isTimeoutException(rootCause) || isUnrecoverable5xxStatusCode(rootCause);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

        Throwable throwable = thrown;
    
        // close closeables in LIFO order
        while (!stack.isEmpty()) {
          Closeable closeable = stack.removeFirst();
          try {
            closeable.close();
          } catch (Throwable e) {
            if (throwable == null) {
              throwable = e;
            } else {
              suppressor.suppress(closeable, throwable, e);
            }
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Closer.java

        Throwable throwable = thrown;
    
        // close closeables in LIFO order
        while (!stack.isEmpty()) {
          Closeable closeable = stack.removeFirst();
          try {
            closeable.close();
          } catch (Throwable e) {
            if (throwable == null) {
              throwable = e;
            } else {
              suppressor.suppress(closeable, throwable, e);
            }
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/exception/MultipleCrawlingAccessException.java

        private static final long serialVersionUID = 1L;
    
        private final Throwable[] throwables;
    
        public MultipleCrawlingAccessException(final String message, final Throwable[] throwables) {
            super(message);
            if (throwables == null) {
                this.throwables = new Throwable[0];
            } else {
                this.throwables = throwables;
            }
        }
    
        @Override
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CloserTest.java

        @Override
        public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) {
          suppressions.add(new Suppression(closeable, thrown, suppressed));
        }
      }
    
      /** Record of a call to suppress. */
      private static class Suppression {
        private final Closeable closeable;
        private final Throwable thrown;
        private final Throwable suppressed;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

            Throwable a, Throwable b, Throwable c, Throwable d, Throwable e) {}
    
        public ExceptionWithManyConstructors(
            Throwable a, Throwable b, Throwable c, Throwable d, Throwable e, String s, Integer i) {}
      }
    
      public static final class ExceptionWithoutThrowableConstructor extends Exception {
        public ExceptionWithoutThrowableConstructor(String s) {
          super(s);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 13:46:56 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top