Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 269 for IllegalStateException (0.16 sec)

  1. android/guava-tests/test/com/google/common/net/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

          listeners.dispatch();
        }
    
        @GuardedBy("monitor")
        void checkHealthy() {
          if (states.count(RUNNING) != numberOfServices) {
            IllegalStateException exception =
                new IllegalStateException(
                    "Expected to be healthy after starting. The following services are not running: "
                        + Multimaps.filterKeys(servicesByState, not(equalTo(RUNNING))));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (1)
  3. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java

        @Test
        void testStringAndThrowableConstructor() {
            // Test the constructor with both message and cause
            String message = "Failed to connect due to timeout.";
            Throwable cause = new IllegalStateException("Network unreachable");
            ConnectionTimeoutException exception = new ConnectionTimeoutException(message, cause);
            assertEquals(message, exception.getMessage(), "Message should match the provided string");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals(componentName, exception.getComponentName());
        }
    
        public void test_constructor_withCause() {
            // Test constructor with cause only
            Throwable cause = new IllegalStateException("Container initialization failed");
            ContainerNotAvailableException exception = new ContainerNotAvailableException(cause);
    
            assertEquals("Container is not available.", exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

      public Iterator<E> iterator() {
        if (iterator == null) {
          // TODO: throw something else? Do we worry that people's code and tests
          // might be relying on this particular type of exception?
          throw new IllegalStateException();
        }
        try {
          return iterator;
        } finally {
          iterator = null;
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            void testEncodeSizeMismatch() {
                byte[] buffer = new byte[1024];
                testRequest.setTestSize(64);
                testRequest.setTestLength(128);
    
                IllegalStateException exception = assertThrows(IllegalStateException.class, () -> {
                    testRequest.encode(buffer, 0);
                });
    
                assertTrue(exception.getMessage().contains("Wrong size calculation"));
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/transport/TransportExceptionTest.java

        public void testConstructorWithMessageAndCause() {
            // Create exception with both message and cause
            String message = "Transport error occurred";
            IllegalStateException rootCause = new IllegalStateException("State error");
            TransportException exception = new TransportException(message, rootCause);
    
            // Verify both message and cause are set correctly
            assertNotNull(exception);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
        val partAbc = parts.nextPart()!!
        val partMno = parts.nextPart()!!
    
        assertFailsWith<IllegalStateException> {
          partAbc.body.request(20)
        }.also { expected ->
          assertThat(expected).hasMessage("closed")
        }
    
        assertThat(partMno.body.readUtf8()).isEqualTo("mnop")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            // Test with URL, message, exception, and abort set to true
            String url = "http://example.com/test2";
            String message = "Critical error message";
            Exception cause = new IllegalStateException("Critical error");
            boolean abort = true;
    
            DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, cause, abort);
    
            assertEquals(url, exception.getUrl());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top