Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,456 for raised (0.2 sec)

  1. tests/test_custom_middleware_exception.py

                    "name": "ContentSizeLimitExceeded",
                    "code": 999,
                    "message": "File limit exceeded",
                }
            }
    
    
    def test_custom_middleware_exception_not_raised(tmp_path: Path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with client:
            with open(path, "rb") as file:
                response = client.post("/middleware", files={"file": file})
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Aug 25 21:44:40 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  2. CONTRIBUTING.md

    list](https://groups.google.com/forum/#!forum/golang-nuts) or [other forums](https://golang.org/help/) first. If
    the behavior you are seeing is confirmed as a bug or issue, it can easily be re-raised in the issue tracker.
    
    ## Filing issues
    
    Sensitive security-related issues should be reported to [******@****.***](mailto:******@****.***).
    See the [security policy](https://golang.org/security) for details.
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 29 22:00:27 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  3. docs/en/docs/reference/websockets.md

                - iter_bytes
                - iter_json
                - send_text
                - send_bytes
                - send_json
                - close
    
    When a client disconnects, a `WebSocketDisconnect` exception is raised, you can catch it.
    
    You can import it directly form `fastapi`:
    
    ```python
    from fastapi import WebSocketDisconnect
    ```
    
    ::: fastapi.WebSocketDisconnect
    
    ## WebSockets - additional classes
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      int max;
    
      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  5. android-test/src/androidTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

     */
    @Tag("Remote")
    class LetsEncryptClientTest {
      @Test fun get() {
        // These tests wont actually run before Android 8.0 as per
        // https://github.com/mannodermaus/android-junit5
        // Raised https://github.com/mannodermaus/android-junit5/issues/228 to reevaluate
        val androidMorEarlier = Build.VERSION.SDK_INT <= 23
    
        val clientBuilder = OkHttpClient.Builder()
    
        if (androidMorEarlier) {
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (1)
  6. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      int max;
    
      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            .isEqualTo(0x6cf78a4b139a4e2aL);
      }
    
      public void testParseLongEmptyString() {
        try {
          UnsignedLongs.parseUnsignedLong("");
          fail("NumberFormatException should have been raised.");
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testParseLongFails() {
        try {
          // One more than maximum value
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            .isEqualTo(0x6cf78a4b139a4e2aL);
      }
    
      public void testParseLongEmptyString() {
        try {
          UnsignedLongs.parseUnsignedLong("");
          fail("NumberFormatException should have been raised.");
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testParseLongFails() {
        try {
          // One more than maximum value
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

        Note over client,operation: Can raise exceptions, including HTTPException
        client ->> dep: Start request
        Note over dep: Run code up to yield
        opt raise Exception
            dep -->> handler: Raise Exception
            handler -->> client: HTTP error response
        end
        dep ->> operation: Run dependency, e.g. DB session
        opt raise
            operation -->> dep: Raise Exception (e.g. HTTPException)
            opt handle
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  10. RELEASE.md

        *   Improve the informativeness of error messages raised by Keras
            `Layer.__call__()`, by adding the full list of argument values passed to
            the layer in every exception.
    
    *   Introduce the `tf.compat.v1.keras.utils.track_tf1_style_variables`
        decorator, which enables using large classes of tf1-style variable_scope,
        `get_variable`, and `compat.v1.layer`-based components from within TF2
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Apr 03 20:27:38 GMT 2024
    - 727.4K bytes
    - Viewed (8)
Back to top