Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 325 for throwable (0.04 sec)

  1. android/guava/src/com/google/common/hash/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)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

      // have completed and we have processed them all.
      volatile @Nullable Set<Throwable> seenExceptionsField = null;
    
      volatile int remainingField;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      private static final LazyLogger log = new LazyLogger(AggregateFutureState.class);
    
      static {
        AtomicHelper helper;
        Throwable thrownReflectionFailure = null;
        try {
          helper = new SafeAtomicHelper();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
            ) {
              t.printStackTrace(System.out)
              latch.countDown()
            }
          },
        )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

            return weakSetValidator();
          }
        }
      }
    
      // TODO(cpovirk): change parameter order to match other helper methods (Class, Throwable)?
      private static <X extends Exception> void wrapAndThrowExceptionOrError(
          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        }
      }
    
      /**
       * Asserts that the given throwable has the given class and then asserts on the message as using
       * the full set of method parameters.
       */
      private void assertFailureCause(
          Throwable throwable, Class<? extends Throwable> clazz, Object[] params) {
        assertThat(throwable).isInstanceOf(clazz);
        if (params.length == 1) {
          assertThat(throwable).hasMessageThat().isNull();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PreconditionsTest.java

        }
      }
    
      /**
       * Asserts that the given throwable has the given class and then asserts on the message as using
       * the full set of method parameters.
       */
      private void assertFailureCause(
          Throwable throwable, Class<? extends Throwable> clazz, Object[] params) {
        assertThat(throwable).isInstanceOf(clazz);
        if (params.length == 1) {
          assertThat(throwable).hasMessageThat().isNull();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/SettableFuture.java

      @Override
      public boolean set(@ParametricNullness V value) {
        return super.set(value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setException(Throwable throwable) {
        return super.setException(throwable);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setFuture(ListenableFuture<? extends V> future) {
        return super.setFuture(future);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

        }
    
        public void test_multiLevelExceptionChain() {
            // Test multi-level exception chain
            Throwable level3 = new NullPointerException("Null value");
            Throwable level2 = new IllegalStateException("Invalid state", level3);
            Throwable level1 = new RuntimeException("Runtime error", level2);
            PluginException exception = new PluginException("Plugin failure", level1);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/internal/Finalizer.java

            long defaultStackSize = 0;
            thread =
                bigThreadConstructor.newInstance(
                    (ThreadGroup) null, finalizer, threadName, defaultStackSize, inheritThreadLocals);
          } catch (Throwable t) {
            logger.log(
                Level.INFO, "Failed to create a thread without inherited thread-local values", t);
          }
        }
        if (thread == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top