Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for internalError (0.22 sec)

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

    如果可以,请尽量使用 `Annotated` 版本。
    
    ///
    
    ```Python hl_lines="15"
    {!> ../../docs_src/dependencies/tutorial008d.py!}
    ```
    
    ////
    
    现在客户端同样会得到 *HTTP 500 Internal Server Error* 响应,但是服务器日志会记录下我们自定义的 `InternalError`。
    
    ##  使用 `yield` 的依赖项的执行
    
    执行顺序大致如下时序图所示。时间轴从上到下,每一列都代表交互或者代码执行的一部分。
    
    ```mermaid
    sequenceDiagram
    
    participant client as Client
    participant handler as Exception handler
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ```Python hl_lines="15"
    {!> ../../docs_src/dependencies/tutorial008d.py!}
    ```
    
    ////
    
    Now the client will get the same *HTTP 500 Internal Server Error* response, but the server will have our custom `InternalError` in the logs. 😎
    
    ## Execution of dependencies with `yield`
    
    The sequence of execution is more or less like this diagram. Time flows from top to bottom. And each column is one of the parts interacting or executing code.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ```Python hl_lines="15"
    {!> ../../docs_src/dependencies/tutorial008d.py!}
    ```
    
    ////
    
    Agora o cliente irá receber a mesma resposta *HTTP 500 Internal Server Error*, mas o servidor terá nosso `InternalError` personalizado nos logs. 😎
    
    ## Execução de dependências com `yield`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		apiErr := errorCodes.ToAPIErr(s3Err)
    		// If not set, convert or use BadRequest
    		if s3Err == ErrNone {
    			apiErr = toAPIError(ctx, err)
    			if apiErr.Code == "InternalError" {
    				// Convert generic internal errors to bad requests.
    				apiErr = APIError{
    					Code:           "BadRequest",
    					Description:    err.Error(),
    					HTTPStatusCode: http.StatusBadRequest,
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top