Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1421 - 1430 of 1,820 for Message1 (0.05 seconds)

  1. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

            is IllegalArgumentException -> {
              assertEquals("Android internal error", ioe.message)
            }
    
            is CertificateException -> {
              assertTrue(ioe.cause?.cause is IllegalArgumentException)
              assertEquals(
                true,
                ioe.cause
                  ?.cause
                  ?.message
                  ?.startsWith("Invalid input to toASCII"),
              )
            }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            }
        }
    
        private void handleChecksumFailure(String checksumPolicy, String message, Throwable cause)
                throws ChecksumFailedException {
            if (ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL.equals(checksumPolicy)) {
                throw new ChecksumFailedException(message, cause);
            } else if (!ArtifactRepositoryPolicy.CHECKSUM_POLICY_IGNORE.equals(checksumPolicy)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial009c_py310.py hl[9:14,17] *}
    
    现在,不再是返回:
    
    ```json
    {"message": "Hello World"}
    ```
    
    ...这个响应将返回:
    
    ```json
    {
      "message": "Hello World"
    }
    ```
    
    当然,你很可能会找到比格式化 JSON 更好的方式来利用这一点。😉
    
    ### `orjson` 或响应模型 { #orjson-or-response-model }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            }, "A PACDecodingException should be thrown for a malformed token.");
    
            assertEquals("Malformed kerberos ticket", exception.getMessage(), "The exception message should indicate a malformed ticket.");
        }
    
        /**
         * Test constructor with an empty token.
         * Empty token causes readObject() to return null, which leads to NullPointerException.
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[14] *}
    
    `.add_task()` 接收以下参数:
    
    * 在后台运行的任务函数(`write_notification`)。
    * 应按顺序传递给任务函数的任意参数序列(`email`)。
    * 应传递给任务函数的任意关键字参数(`message="some notification"`)。
    
    ## 依赖注入 { #dependency-injection }
    
    使用 `BackgroundTasks` 也适用于依赖注入系统,你可以在多个级别声明 `BackgroundTasks` 类型的参数:在 *路径操作函数* 里,在依赖中(可依赖),在子依赖中,等等。
    
    **FastAPI** 知道在每种情况下该做什么以及如何复用同一对象,因此所有后台任务被合并在一起并且随后在后台运行:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

                throw AssertionError("unsupported hashAlgorithm: ${pin.hashAlgorithm}")
              }
            }
          }
        }
    
        // If we couldn't find a matching pin, format a nice exception.
        val message =
          buildString {
            append("Certificate pinning failure!")
            append("\n  Peer certificate chain:")
            for (element in peerCertificates) {
              append("\n    ")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 14.2K bytes
    - Click Count (1)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

            try {
                ReflectionValueExtractor.evaluate("h.value[1]", new ValueHolder("string"));
            } catch (Exception e) {
                // TODO assert exception message
            }
        }
    
        /**
         * <p>testIllegalMappedType.</p>
         *
         * @throws Exception if any.
         */
        @Test
        public void testIllegalMappedType() throws Exception {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 16.9K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/GlobalBuildInfoPlugin.java

            String message = String.format(
                Locale.ROOT,
                "The %s must be set to a JDK installation directory for Java %d but is [%s] corresponding to [%s]",
                description,
                expectedVersion,
                javaHome,
                actualVersion
            );
    
            throw new GradleException(message);
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 17 10:02:58 GMT 2021
    - 18.1K bytes
    - Click Count (0)
  9. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

            put(inputStream(), RepositoryPlugin.PutOptions())
            println("Deployed ${file.name}")
          }
        } catch (e: IllegalArgumentException) {
          if ("Jar does not have a symbolic name" in e.message!!) {
            println("Skipped non-OSGi dependency: ${file.name}")
            return
          }
          throw e
        }
      }
    
      companion object {
        val fileSystem = FileSystem.SYSTEM
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java

    import jcifs.internal.smb2.ServerMessageBlock2;
    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Session Setup request message. This command is used to establish a security session
     * and authenticate a user to the server.
     *
     * @author mbechler
     *
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top