Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2271 - 2280 of 2,371 for Try (0.06 seconds)

  1. docs/uk/docs/tutorial/dependencies/dependencies-with-yield.md

    Можете використовувати як `async`, так і звичайні функції.
    
    **FastAPI** зробить усе правильно з кожною з них, так само як і зі звичайними залежностями.
    
    ///
    
    ## Залежність з `yield` та `try` { #a-dependency-with-yield-and-try }
    
    Якщо ви використовуєте блок `try` в залежності з `yield`, ви отримаєте будь-який виняток, який був згенерований під час використання залежності.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 18.4K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial007_py310.py

    async def get_db():
        db = DBSession()
        try:
            yield db
        finally:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 99 bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Floats.java

        if (Doubles.FLOATING_POINT_PATTERN.matcher(string).matches()) {
          // TODO(lowasser): could be potentially optimized, but only with
          // extensive testing
          try {
            return parseFloat(string);
          } catch (NumberFormatException e) {
            // Float.parseFloat has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  4. docs/ja/docs/index.md

    次に、[http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) にアクセスします。
    
    * 自動対話型 API ドキュメントは新しいボディも含めて自動でアップデートされます。
    
    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
    
    * 「Try it out」ボタンをクリックします。パラメータを入力して API と直接やりとりできます。
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
    
    * 次に、「Execute」ボタンをクリックします。ユーザーインターフェースは API と通信し、パラメータを送信し、結果を取得して画面に表示します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        client =
          OkHttpClient
            .Builder()
            .dns { hostname: String? -> throw UnknownHostException("reason") }
            .addInterceptor(applicationInterceptor)
            .build()
        try {
          client.newCall(request().build()).execute()
          fail<Any>()
        } catch (expected: UnknownHostException) {
        }
        applicationLogs
          .assertLogEqual("--> GET $url")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Nov 07 02:57:33 GMT 2025
    - 39.4K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/index.md

    前往 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)。
    
    * 互動式 API 文件會自動更新,包含新的 body:
    
    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
    
    * 點擊「Try it out」按鈕,你可以填寫參數並直接與 API 互動:
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
    
    * 然後點擊「Execute」按鈕,使用者介面會與你的 API 溝通、送出參數、取得結果並顯示在螢幕上:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/LongsTest.java

        long[][] arrays = new long[arraysDim1][];
        // it's shared to avoid using too much memory in tests
        long[] sharedArray = new long[arraysDim2];
        Arrays.fill(arrays, sharedArray);
    
        try {
          Longs.concat(arrays);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static void assertByteArrayEquals(byte[] expected, byte[] actual) {
        assertWithMessage(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/websockets.md

    Em sua rota WebSocket você pode esperar (`await`) por mensagens e enviar mensagens.
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[48:52] *}
    
    Você pode receber e enviar dados binários, de texto e JSON.
    
    ## Tente { #try-it }
    
    Coloque seu código em um arquivo `main.py` e então execute sua aplicação:
    
    <div class="termy">
    
    ```console
    $ fastapi dev
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      // throws it, unlike the JDK.  Therefore, we accept ClassCastException as a
      // valid result thrown by java.util.TreeSet#equals.
      private static void assertNotEqualLenient(TreeSet<?> unexpected, SortedSet<?> actual) {
        try {
          assertThat(actual).isNotEqualTo(unexpected);
        } catch (ClassCastException accepted) {
        }
      }
    
      public void testHeadSetInclusive() {
        String[] strings = NUMBER_NAMES.toArray(new String[0]);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 46.3K bytes
    - Click Count (0)
  10. docs/en/docs/deployment/docker.md

    * [MongoDB](https://hub.docker.com/_/mongo)
    * [Redis](https://hub.docker.com/_/redis), etc.
    
    By using a pre-made container image it's very easy to **combine** and use different tools. For example, to try out a new database. In most cases, you can use the **official images**, and just configure them with environment variables.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 28.3K bytes
    - Click Count (1)
Back to Top