- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 361 for Throwables (0.04 sec)
-
android/guava/src/com/google/common/base/SneakyThrows.java
/** Static utility method for unchecked throwing of any {@link Throwable}. */ @GwtCompatible final class SneakyThrows<T extends Throwable> { /** * Throws {@code t} as if it were an unchecked {@link Throwable}. * * <p>This method is useful primarily when we make a reflective call to a method with no {@code * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
val addresses = Dns.SYSTEM.lookup(hostname) listOf(addresses[0]) } private operator fun Throwable?.plus(throwable: Throwable): Throwable { if (this != null) { addSuppressed(throwable) return this } return throwable } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
} } val throwable = connectResult.throwable if (throwable != null) { if (throwable !is IOException) throw throwable if (firstException == null) { firstException = throwable } else { firstException.addSuppressed(throwable) } } val nextPlan = connectResult.nextPlanRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFluentFutureCatchingSpecialization.java
* In the GWT versions of the methods (below), every exceptionType parameter is required to be * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write * your own instanceof tests. */ public final FluentFuture<V> catching( Class<Throwable> exceptionType, Function<? super Throwable, ? extends V> fallback, Executor executor) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java
final class Platform { static boolean isInstanceOfThrowableClass(Throwable t, Class<? extends Throwable> expectedClass) { /* * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class * under GWT. */ return true; } static void restoreInterruptIfIsInterruptedException(Throwable t) {} static void interruptCurrentThread() {}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 27 16:15:49 UTC 2025 - 2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java
* Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write * your own instanceof tests. */ public static <V extends @Nullable Object> ListenableFuture<V> catching( ListenableFuture<? extends V> input, Class<Throwable> exceptionType, Function<? super Throwable, ? extends V> fallback, Executor executor) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2K bytes - Viewed (0) -
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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java
assertEquals(cause, exception.getCause(), "Cause should match the provided throwable"); } @Test void testStringAndThrowableConstructor() { // Test the constructor with both message and cause String message = "Failed to connect due to timeout."; Throwable cause = new IllegalStateException("Network unreachable");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java
Throwable cause = new RuntimeException("Root cause"); RequestTimeoutException exception = new RequestTimeoutException(cause); assertEquals("java.lang.RuntimeException: Root cause", exception.getMessage(), "Message should be derived from the cause"); assertEquals(cause, exception.getCause(), "Cause should match the provided throwable"); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> exceptions() { return ImmutableMap.of(); } } private static final ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> INSTANCE_OF = ImmutableMap.<Class<? extends Throwable>, Predicate<Throwable>>builder() .put(ArithmeticException.class, e -> e instanceof ArithmeticException)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.9K bytes - Viewed (0)