Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 167 for oops (0.02 sec)

  1. docs/zh/docs/tutorial/handling-errors.md

    请求 `/unicorns/yolo` 时,路径操作会触发 `UnicornException`。
    
    但该异常将会被 `unicorn_exception_handler` 处理。
    
    接收到的错误信息清晰明了,HTTP 状态码为 `418`,JSON 内容如下:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    
    ```
    
    /// note | 技术细节
    
    `from starlette.requests import Request` 和 `from starlette.responses import JSONResponse` 也可以用于导入 `Request` 和 `JSONResponse`。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/handling-errors.md

    ここで、`/unicorns/yolo`をリクエストすると、*path operation*は`UnicornException`を`raise`します。
    
    しかし、これは`unicorn_exception_handler`で処理されます。
    
    そのため、HTTPステータスコードが`418`で、JSONの内容が以下のような明確なエラーを受け取ることになります:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    /// note | 技術詳細
    
    また、`from starlette.requests import Request`と`from starlette.responses import JSONResponse`を使用することもできます。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    		empty(t, "TestReadFrom (2)", &b, s, make([]byte, len(testString)))
    	}
    }
    
    type panicReader struct{ panic bool }
    
    func (r panicReader) Read(p []byte) (int, error) {
    	if r.panic {
    		panic("oops")
    	}
    	return 0, io.EOF
    }
    
    // Make sure that an empty Buffer remains empty when
    // it is "grown" before a Read that panics
    func TestReadFromPanicReader(t *testing.T) {
    
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. fastapi/applications.py

            async def unicorn_exception_handler(request: Request, exc: UnicornException):
                return JSONResponse(
                    status_code=418,
                    content={"message": f"Oops! {exc.name} did something. There goes a rainbow..."},
                )
            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  5. okhttp/src/jvmMain/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.list

    ono.fukui.jp
    ono.fukushima.jp
    ono.hyogo.jp
    onojo.fukuoka.jp
    onomichi.hiroshima.jp
    onporter.run
    onrender.com
    onthewifi.com
    onza.mythic-beasts.com
    ooguy.com
    ookuwa.nagano.jp
    ooo
    oops.jp
    ooshika.nagano.jp
    oow.gov.pl
    opal.ne.jp
    open
    opencraft.hosting
    opensocial.site
    operaunite.com
    opoczno.pl
    opole.pl
    oppdal.no
    oppegard.no
    oppegård.no
    or.at
    or.bi
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 129.6K bytes
    - Viewed (3)
  6. src/main/java/org/codelibs/core/io/LineIterator.java

        protected final BufferedReader reader;
    
        /** The line that has been read */
        protected String line = EMPTY;
    
        /**
         * Returns an {@link Iterable} that wraps a {@link LineIterator} for use in enhanced for-loops.
         *
         * @param reader
         *            The {@link Reader} to read strings from. Must not be {@literal null}.
         * @return An {@link Iterable} that wraps a {@link LineIterator}.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. cmd/background-heal-ops.go

    ILIYA <******@****.***> 1748359143 +0900
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    Klaus Post <******@****.***> 1756435188 +0200
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  9. okhttp/src/androidMain/assets/PublicSuffixDatabase.list

    ono.fukui.jp
    ono.fukushima.jp
    ono.hyogo.jp
    onojo.fukuoka.jp
    onomichi.hiroshima.jp
    onporter.run
    onrender.com
    onthewifi.com
    onza.mythic-beasts.com
    ooguy.com
    ookuwa.nagano.jp
    ooo
    oops.jp
    ooshika.nagano.jp
    oow.gov.pl
    opal.ne.jp
    open
    opencraft.hosting
    opensocial.site
    operaunite.com
    opoczno.pl
    opole.pl
    oppdal.no
    oppegard.no
    oppegård.no
    or.at
    or.bi
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Dec 31 14:50:53 UTC 2024
    - 129.6K bytes
    - Viewed (2)
  10. internal/grid/benchmark_test.go

    					b.ReportMetric(latency/float64(ops), "ms/op")
    				}
    			})
    		}
    	})
    	b.Run("rpc", func(b *testing.B) {
    		for par := 1; par <= 32; par *= 2 {
    			b.Run("par="+strconv.Itoa(par*runtime.GOMAXPROCS(0)), func(b *testing.B) {
    				defer timeout(60 * time.Second)()
    				ctx, cancel := context.WithTimeout(b.Context(), 30*time.Second)
    				defer cancel()
    				b.ReportAllocs()
    				b.ResetTimer()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top