Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 782 for thrown (0.26 sec)

  1. guava/src/com/google/common/io/Closer.java

     *   <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown
     *       by an attempt to close a resource will be thrown.
     *   <li>Any exception caught when attempting to close a resource that is <i>not</i> thrown (because
     *       another exception is already being thrown) is <i>suppressed</i>.
     * </ul>
     *
     * <p>An exception that is suppressed is added to the exception that <i>will</i> be thrown using
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Closer.java

     *   <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown
     *       by an attempt to close a resource will be thrown.
     *   <li>Any exception caught when attempting to close a resource that is <i>not</i> thrown (because
     *       another exception is already being thrown) is <i>suppressed</i>.
     * </ul>
     *
     * <p>An exception that is suppressed is added to the exception that <i>will</i> be thrown using
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause);
    
        ClassCastException expected =
            assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/ThrowablesTest.java

        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
        assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause);
    
        ClassCastException expected =
            assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MoreFiles.java

        }
        return exceptions;
      }
    
      /**
       * Throws an exception indicating that one or more files couldn't be deleted when deleting {@code
       * path} or its contents.
       *
       * <p>If there is only one exception in the collection, and it is a {@link NoSuchFileException}
       * thrown because {@code path} itself didn't exist, then throws that exception. Otherwise, the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/MoreFiles.java

        }
        return exceptions;
      }
    
      /**
       * Throws an exception indicating that one or more files couldn't be deleted when deleting {@code
       * path} or its contents.
       *
       * <p>If there is only one exception in the collection, and it is a {@link NoSuchFileException}
       * thrown because {@code path} itself didn't exist, then throws that exception. Otherwise, the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        final Supplier<Integer> nonThreadSafe =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/SuppliersTest.java

        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        final Supplier<Integer> nonThreadSafe =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top