Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,268 for Throwables (0.19 sec)

  1. 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/AnnotationProcessingCompileTaskTest.groovy

            when:
            processTask.call()
    
            then:
            def e = thrown(Throwable)
            def root = Throwables.getRootCause(e)
            root.message == errorMsg
            root.stackTrace.any { frame -> frame.className == throwingClass }
            !Throwables.getCausalChain(e).any { c -> c.class == InvocationTargetException.class }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

    import static com.google.common.base.Throwables.lazyStackTrace;
    import static java.util.Arrays.asList;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.SkipThisScenarioException;
    import java.util.List;
    
    /**
     * Quick and dirty benchmark of {@link Throwables#lazyStackTrace(Throwable)}. We benchmark a "caller
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

    import static com.google.common.base.Throwables.lazyStackTrace;
    import static java.util.Arrays.asList;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.SkipThisScenarioException;
    import java.util.List;
    
    /**
     * Quick and dirty benchmark of {@link Throwables#lazyStackTrace(Throwable)}. We benchmark a "caller
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  9. subprojects/core/src/testFixtures/groovy/org/gradle/cache/internal/TestFileContentCacheFactory.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.cache.internal;
    
    import com.google.common.base.Throwables;
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    import com.google.common.util.concurrent.UncheckedExecutionException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformErrorHandler.java

     *     Class&lt;?&gt; result;
     *     try {
     *         result = super.findClass(name);
     *     } catch (Throwable th) {
     *         throw handler.exitClassLoadingScopeWithException(th);
     *     }
     *     handler.exitClassLoadingScope();
     *     return result;
     * }
     *
     * public void transformFailed(String className, Throwable th) {
     *     handler.classLoadingError(className, th);
     * }
     * </code>
     * </pre>
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top