Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 269 for IllegalStateException (0.07 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          contentLength != -1L -> newKnownLengthSink() // Stream a request body of a known length.
          else -> // Stream a request body of a known length.
            throw IllegalStateException(
              "Cannot stream a request body without chunked encoding or a known content length!",
            )
        }
    
      override fun cancel() {
        carrier.cancel()
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (7)
  2. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            }
        }
    
        @Test
        void causeConstructor_setsCause_andDerivesMessageFromCauseToString() {
            // Arrange - use a real cause so message is derived from cause.toString()
            Throwable cause = new IllegalStateException("proto mismatch");
            String expectedMessage = cause.toString();
    
            // Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        Lock lockA = factory.newReentrantLock(OtherOrder.FIRST);
        Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock();
    
        lockA.lock();
        assertThrows(IllegalStateException.class, () -> lockB.lock());
    
        lockA.unlock();
        lockB.lock();
      }
    
      public void testReadLock_deadlock() {
        readLockA.lock(); // Establish an ordering from readLockA -> lockB.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        Lock lockA = factory.newReentrantLock(OtherOrder.FIRST);
        Lock lockB = factory.newReentrantReadWriteLock(OtherOrder.FIRST).readLock();
    
        lockA.lock();
        assertThrows(IllegalStateException.class, () -> lockB.lock());
    
        lockA.unlock();
        lockB.lock();
      }
    
      public void testReadLock_deadlock() {
        readLockA.lock(); // Establish an ordering from readLockA -> lockB.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructor_withNestedCause() {
            // Test constructor with nested exception causes
            Exception rootCause = new IllegalStateException("Root cause");
            Exception middleCause = new RuntimeException("Middle cause", rootCause);
            String message = "Top level dictionary error";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            // Note: isTarget requires FessConfig which needs container
            // We can only verify the method handles missing container gracefully
            try {
                generator.isTarget(docMap);
            } catch (IllegalStateException e) {
                // Expected when container is not initialized
                assertTrue(e.getMessage().contains("Not initialized"));
            }
        }
    
        public void test_addCondition() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        sizesToTest.retainAll(asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL));
    
        logger.fine("   Sizes: " + formatFeatureSet(sizesToTest));
    
        if (sizesToTest.isEmpty()) {
          throw new IllegalStateException(
              name
                  + ": no CollectionSizes specified (check the argument to "
                  + "FeatureSpecificTestSuiteBuilder.withFeatures().)");
        }
    
        TestSuite suite = new TestSuite(name);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

        // System.setProperty("jdk.tls.client.enableSessionTicketExtension", "true")
        // System.setProperty("jdk.tls.server.enableSessionTicketExtension", "true")
    
        // IllegalStateException: Cannot resume session and session creation is disabled
        platform.assumeNotBouncyCastle()
      }
    
      @ParameterizedTest(name = "{displayName}({arguments})")
      @ValueSource(strings = ["TLSv1.2", "TLSv1.3"])
      @Flaky
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (1)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

         * It is an error to call this multiple times on the same instance.
         *
         * @throws IllegalStateException if this request doesn't have a request body, or if it already
         *     has a 'Content-Encoding' header.
         */
        fun gzip() =
          apply {
            val identityBody =
              body
                ?: throw IllegalStateException("cannot gzip a request that has no body")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

        }
    
        /**
         * Test constructor with null message and valid cause
         */
        public void test_constructor_withNullMessageAndValidCause() {
            Exception cause = new IllegalStateException("State error");
            CrawlerSystemException exception = new CrawlerSystemException(null, cause);
    
            assertNotNull(exception);
            assertNull(exception.getMessage());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top