- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 460 for Throwable (0.17 sec)
-
android/guava/src/com/google/common/util/concurrent/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java
} /** * Processes system error log events. * * @param objs the log objects (should contain a Throwable) */ protected void processSystemError(final Object... objs) { final Throwable t = (Throwable) objs[0]; if (logger.isErrorEnabled()) { logger.error("System Error.", t); } } /**
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 14K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestDeleteResponse.java
public class SuggestDeleteResponse { /** List of errors that occurred during the operation. */ protected final List<Throwable> errors = new ArrayList<>(); /** Time taken for the operation in milliseconds. */ protected final long took; /** * Constructor for SuggestDeleteResponse. * @param errors A list of Throwables representing errors. * @param took The time taken for the operation in milliseconds. */
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 2.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java
for (int i = 0; i < reps; i++) { int f = 0; Throwable t = new Throwable(); for (StackTraceElement ste : getStackTrace(t)) { dummy |= ste == duh; if (f++ == breakAt) { break; } } } return dummy; } abstract List<StackTraceElement> getStackTrace(Throwable t); } @BeforeExperiment public void doBefore() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java
for (int i = 0; i < reps; i++) { int f = 0; Throwable t = new Throwable(); for (StackTraceElement ste : getStackTrace(t)) { dummy |= ste == duh; if (f++ == breakAt) { break; } } } return dummy; } abstract List<StackTraceElement> getStackTrace(Throwable t); } @BeforeExperiment public void doBefore() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
/** * Fails this future with the given Throwable if {@link #allMustSucceed} is true. Also, logs the * throwable if it is an {@link Error} or if {@link #allMustSucceed} is {@code true}, the * throwable did not cause this future to fail, and it is the first time we've seen that * particular Throwable. */ private void handleException(Throwable throwable) { checkNotNull(throwable); if (allMustSucceed) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 16K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
@Nullable private String value = null; @Nullable private Throwable failure = null; private boolean wasCalled = false; private final Object monitor = new Object(); MockCallback(String expectedValue) { this.value = expectedValue; } MockCallback(Throwable expectedFailure) { this.failure = expectedFailure; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 7.8K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2K bytes - Viewed (0)