Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 277 for IllegalStateException (0.22 sec)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/ReloadableKuromojiTokenizerFactory.java

        protected static final Reader ILLEGAL_STATE_READER = new Reader() {
            @Override
            public int read(final char[] cbuf, final int off, final int len) {
                throw new IllegalStateException("TokenStream contract violation: reset()/close() call missing, "
                        + "reset() called multiple times, or subclass does not call super.reset(). "
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. android/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)
  3. android/guava/src/com/google/common/util/concurrent/Service.java

       *
       * @throws IllegalStateException if the service reaches a state from which it is not possible to
       *     enter the {@link State#RUNNING} state. e.g. if the {@code state} is {@code
       *     State#TERMINATED} when this method is called then this will throw an IllegalStateException.
       * @since 15.0
       */
      void awaitRunning();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. android/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)
  5. guava-tests/test/com/google/common/base/PreconditionsTest.java

      public void testCheckState_simple_failure() {
        assertThrows(IllegalStateException.class, () -> checkState(false));
      }
    
      public void testCheckState_simpleMessage_success() {
        checkState(true, IGNORE_ME);
      }
    
      public void testCheckState_simpleMessage_failure() {
        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> checkState(false, new Message()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractService.java

            // Handle this specially so that we can include the failureCause, if there is one.
            throw new IllegalStateException(
                "Expected the service " + this + " to be " + expected + ", but the service has FAILED",
                failureCause());
          }
          throw new IllegalStateException(
              "Expected the service " + this + " to be " + expected + ", but was " + actual);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/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: Sat Oct 19 02:56:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/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: Fri Oct 18 15:00:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

      public void start() throws Exception {
        if (mockWebServer != null) throw new IllegalStateException();
    
        mockWebServer = new MockWebServer();
        mockWebServer.setDispatcher(this);
        mockWebServer.start(slackApi.port);
      }
    
      public HttpUrl newAuthorizeUrl(String scopes, String team, Listener listener) {
        if (mockWebServer == null) throw new IllegalStateException();
    
        ByteString state = randomToken();
        synchronized (this) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        @Override
        protected void doStart() {
          notifyFailed(new IllegalStateException("start failure"));
        }
      }
    
      private static class FailRunService extends NoOpService {
        @Override
        protected void doStart() {
          super.doStart();
          notifyFailed(new IllegalStateException("run failure"));
        }
      }
    
      private static class FailStopService extends NoOpService {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top