Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 277 for IllegalStateException (0.23 sec)

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

        SomeUncheckedException sue = new SomeUncheckedException();
        IllegalArgumentException iae = new IllegalArgumentException(sue);
        RuntimeException re = new RuntimeException(iae);
        IllegalStateException ex = new IllegalStateException(re);
    
        assertThat(getCausalChain(ex)).containsExactly(ex, re, iae, sue).inOrder();
        assertSame(sue, Iterables.getOnlyElement(getCausalChain(sue)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

       * when hasNext() is false, so that next() throws a NoSuchElementException, then subsequent calls
       * to remove() will incorrectly throw an IllegalStateException, instead of removing the last
       * element returned.
       *
       * <p>See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6529795">Sun bug 6529795</a>
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        static final PermittedMetaException UOE_OR_ISE =
            new PermittedMetaException("UnsupportedOperationException or IllegalStateException") {
              @Override
              boolean isPermitted(Exception exception) {
                return exception instanceof UnsupportedOperationException
                    || exception instanceof IllegalStateException;
              }
            };
        static final PermittedMetaException UOE =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java

              .put(ExecutionException.class, e -> e instanceof ExecutionException)
              .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException)
              .put(IllegalStateException.class, e -> e instanceof IllegalStateException)
              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        stopwatch.start();
        assertThrows(IllegalStateException.class, stopwatch::start);
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        assertThrows(IllegalStateException.class, stopwatch::stop);
        assertFalse(stopwatch.isRunning());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        ThrowOnStartUpService service = new ThrowOnStartUpService();
        assertFalse(service.startUpCalled);
    
        service.startAsync();
        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> service.awaitRunning());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        executionThread.join();
    
        assertTrue(service.startUpCalled);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Cut.java

        }
    
        @Override
        Comparable<?> endpoint() {
          throw new IllegalStateException("range unbounded on this side");
        }
    
        @Override
        boolean isLessThan(Comparable<?> value) {
          return true;
        }
    
        @Override
        BoundType typeAsLowerBound() {
          throw new IllegalStateException();
        }
    
        @Override
        BoundType typeAsUpperBound() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/Network.java

       *
       * <p>If {@code node} is removed from the network after this method is called, the {@code Set}
       * {@code view} returned by this method will be invalidated, and will throw {@code
       * IllegalStateException} if it is accessed in any way, with the following exceptions:
       *
       * <ul>
       *   <li>{@code view.equals(view)} evaluates to {@code true} (but any other {@code equals()}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/HMACT64.java

                ipad[i] = IPAD;
                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.4K bytes
    - Viewed (0)
Back to top