Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for throwException (0.12 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      protected volatile boolean throwException = false;
    
      protected final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              new Callable<Integer>() {
                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      protected volatile boolean throwException = false;
    
      protected final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              new Callable<Integer>() {
                @Override
                public Integer call() throws Exception {
                  runLatch.countDown();
                  taskLatch.await();
                  if (throwException) {
                    throw new IllegalStateException("Fail");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ReaderInputStream.java

              } else { // (c)
                readMoreChars();
              }
            } else if (result.isError()) {
              // Only reach here if a CharsetEncoder with non-REPLACE settings is used.
              result.throwException();
              return 0; // Not called.
            }
          }
        }
      }
    
      /** Returns a new CharBuffer identical to buf, except twice the capacity. */
      private static CharBuffer grow(CharBuffer buf) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ReaderInputStream.java

              } else { // (c)
                readMoreChars();
              }
            } else if (result.isError()) {
              // Only reach here if a CharsetEncoder with non-REPLACE settings is used.
              result.throwException();
              return 0; // Not called.
            }
          }
        }
      }
    
      /** Returns a new CharBuffer identical to buf, except twice the capacity. */
      private static CharBuffer grow(CharBuffer buf) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

             * @return Integer
             */
            public Integer echo(final Integer arg) {
                return arg;
            }
    
            /**
             *
             */
            public void throwException() {
                throw new IllegalStateException("hoge");
            }
        }
    
        /**
         *
         */
        public class MyBean2 {
            /**
             *
             */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CloserTest.java

        try {
          try {
            throw thrownException;
          } catch (Throwable e) {
            throw closer.rethrow(thrownException, IOException.class);
          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CloserTest.java

        try {
          try {
            throw thrownException;
          } catch (Throwable e) {
            throw closer.rethrow(thrownException, IOException.class);
          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top