- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 448 for throwing (0.04 sec)
-
guava/src/com/google/common/util/concurrent/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/base/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
* second invocation, so implementors have made various choices, including: * * <ul> * <li>returning the same iterator again * <li>throwing an exception of some kind * <li>or the usual, <i>robust</i> behavior, which all known {@link Collection} implementations * have, of returning a new, independent iterator * </ul> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ImmediateFuture.java
return super.toString() + "[status=SUCCESS, result=[" + value + "]]"; } static final class ImmediateFailedFuture<V extends @Nullable Object> extends TrustedFuture<V> { ImmediateFailedFuture(Throwable thrown) { setException(thrown); } } static final class ImmediateCancelledFuture<V extends @Nullable Object> extends TrustedFuture<V> { static final @Nullable ImmediateCancelledFuture<Object> INSTANCE =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java
assertEquals("Exception 2", exception2.getMessage()); assertNotNull(exception3.getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Test throw and catch"; try { throw new SearchQueryException(expectedMessage); } catch (SearchQueryException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/TrailersSource.kt
package okhttp3 import okio.IOException /** * Returns the trailers that follow an HTTP response, blocking if they aren't ready yet. * Implementations of this interface should respond to [Call.cancel] by immediately throwing an * [IOException]. * * Most callers won't need this interface, and should use [Response.trailers] instead. * * This interface is for test and production code that creates [Response] instances without making
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching the exception try { throw new DictionaryExpiredException(); } catch (DictionaryExpiredException e) { assertNotNull(e); assertNull(e.getMessage());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0)