Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for propagateIfInstanceOf (3.21 sec)

  1. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
      public void testPropagateIfInstanceOf_checkedSame() {
        assertThrows(
            SomeCheckedException.class,
            () -> propagateIfInstanceOf(new SomeCheckedException(), SomeCheckedException.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ThrowablesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
      public void testPropagateIfInstanceOf_checkedSame() {
        assertThrows(
            SomeCheckedException.class,
            () -> propagateIfInstanceOf(new SomeCheckedException(), SomeCheckedException.class));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

       * <pre>
       * try {
       *   someMethodThatCouldThrowAnything();
       * } catch (IKnowWhatToDoWithThisException e) {
       *   handle(e);
       * } catch (Throwable t) {
       *   Throwables.propagateIfInstanceOf(t, IOException.class);
       *   Throwables.propagateIfInstanceOf(t, SQLException.class);
       *   throw Throwables.propagate(t);
       * }
       * </pre>
       *
       * @deprecated Use {@link #throwIfInstanceOf}, which has the same behavior but rejects {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
Back to top