Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 344 for Unexpected (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

                pb.redirectErrorStream(true);
            };
    
            try {
                processHelper.startProcess(sessionId, cmdList, pbCall);
                fail("Expected exception for empty command list");
            } catch (Exception e) {
                // Expected - empty command list should cause exception
                assertTrue(e instanceof JobProcessingException || e instanceof IndexOutOfBoundsException);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. docs/recipes.md

            try {
              call.execute().use { response ->
                System.out.printf("%.2f Call was expected to fail, but completed: %s%n",
                    (System.nanoTime() - startNanos) / 1e9f, response)
              }
            } catch (e: IOException) {
              System.out.printf("%.2f Call failed as expected: %s%n",
                  (System.nanoTime() - startNanos) / 1e9f, e)
            }
          }
        ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

                if (!perMessageDeflate) throw ProtocolException("Unexpected rsv1 flag")
                true
              } else {
                false
              }
          }
          else -> {
            if (reservedFlag1) throw ProtocolException("Unexpected rsv1 flag")
          }
        }
    
        val reservedFlag2 = b0 and B0_FLAG_RSV2 != 0
        if (reservedFlag2) throw ProtocolException("Unexpected rsv2 flag")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        } catch (e: EOFException) {
          // Provide more context if the server ends the stream before sending a response.
          val address =
            carrier.route.address.url
              .redact()
          throw IOException("unexpected end of stream on $address", e)
        }
      }
    
      private fun newChunkedSink(): Sink {
        check(state == STATE_OPEN_REQUEST_BODY) { "state: $state" }
        state = STATE_WRITING_REQUEST_BODY
        return ChunkedSink()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

          clientReader.processNextFrame()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Unexpected rsv2 flag")
        }
        data.clear()
        data.write("9a00".decodeHex()) // Empty pong, flag 3 set.
        assertFailsWith<ProtocolException> {
          clientReader.processNextFrame()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Unexpected rsv3 flag")
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        }
      }
    
      fun readBoolean(): Boolean {
        if (bytesLeft != 1L) throw ProtocolException("unexpected length: $bytesLeft at $this")
        return source.readByte().toInt() != 0
      }
    
      fun readBigInteger(): BigInteger {
        if (bytesLeft == 0L) throw ProtocolException("unexpected length: $bytesLeft at $this")
        val byteArray = source.readByteArray(bytesLeft)
        return BigInteger(byteArray)
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

            } catch (Exception e) {
                fail("Unexpected exception: " + e.getMessage());
            }
        }
    
        public void test_install_blankUrl() {
            PluginHelper testHelper = new PluginHelper();
            Artifact artifact = new Artifact("test", "1.0.0", "");
    
            try {
                testHelper.install(artifact);
                fail("Expected PluginException");
            } catch (PluginException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. docs/features/https.md

                .url("https://publicobject.com/robots.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
              for (certificate in response.handshake!!.peerCertificates) {
                println(CertificatePinner.pin(certificate))
              }
            }
          }
        ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

            .callTimeout(1_000, TimeUnit.MILLISECONDS)
            .build()
        val call = client.newCall(Request(url))
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertThat(expected).hasMessage("timeout")
        }
      }
    
      /**
       * This test reproduces a crash where OkHttp attempted to use a deferred connection when the call
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

            try {
                webApiFilter.doFilter(request, response, chain);
                fail("Expected IOException");
            } catch (IOException e) {
                assertEquals("Test IOException", e.getMessage());
            } catch (ServletException e) {
                fail("Unexpected ServletException: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.2K bytes
    - Viewed (0)
Back to top