Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for throwIfInstanceOf (0.26 seconds)

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

      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_unchecked() throws SomeCheckedException {
        throwIfInstanceOf(new SomeUncheckedException(), SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_checkedDifferent() throws SomeCheckedException {
        throwIfInstanceOf(new SomeOtherCheckedException(), SomeCheckedException.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/ThrowablesTest.java

      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_unchecked() throws SomeCheckedException {
        throwIfInstanceOf(new SomeUncheckedException(), SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
      public void testThrowIfInstanceOf_checkedDifferent() throws SomeCheckedException {
        throwIfInstanceOf(new SomeOtherCheckedException(), SomeCheckedException.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/io/Closer.java

          Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 {
        checkNotNull(e);
        thrown = e;
        throwIfInstanceOf(e, IOException.class);
        throwIfInstanceOf(e, declaredType1);
        throwIfInstanceOf(e, declaredType2);
        throwIfUnchecked(e);
        throw new RuntimeException(e);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Throwables.java

       *
       * @deprecated Use {@link #throwIfInstanceOf}, which has the same behavior but rejects {@code
       *     null}.
       */
      @Deprecated
      @J2ktIncompatible
      @GwtIncompatible // throwIfInstanceOf
      public static <X extends Throwable> void propagateIfInstanceOf(
          @Nullable Throwable throwable, Class<X> declaredType) throws X {
        if (throwable != null) {
          throwIfInstanceOf(throwable, declaredType);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Throwables.java

       *
       * @deprecated Use {@link #throwIfInstanceOf}, which has the same behavior but rejects {@code
       *     null}.
       */
      @Deprecated
      @J2ktIncompatible
      @GwtIncompatible // throwIfInstanceOf
      public static <X extends Throwable> void propagateIfInstanceOf(
          @Nullable Throwable throwable, Class<X> declaredType) throws X {
        if (throwable != null) {
          throwIfInstanceOf(throwable, declaredType);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/CloserTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Throwables.throwIfInstanceOf;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableList;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/io/CloserTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Throwables.throwIfInstanceOf;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableList;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
Back to Top