Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 508 for handlePing (0.23 seconds)

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

    # 錯誤處理 { #handling-errors }
    
    在許多情況下,你需要通知使用你 API 的用戶端發生錯誤。
    
    這個用戶端可能是帶有前端的瀏覽器、他人的程式碼、IoT 裝置等。
    
    你可能需要告訴用戶端:
    
    * 用戶端沒有足夠權限執行該操作。
    * 用戶端沒有權限存取該資源。
    * 用戶端嘗試存取的項目不存在。
    * 等等。
    
    在這些情況下,通常會回傳範圍為 400(400 到 499)的 HTTP 狀態碼。
    
    這類似於 200 範圍的 HTTP 狀態碼(200 到 299)。那些「200」狀態碼表示請求在某種程度上是「成功」的。
    
    400 範圍的狀態碼表示用戶端錯誤。
    
    還記得那些「404 Not Found」錯誤(和梗)嗎?
    
    ## 使用 `HTTPException` { #use-httpexception }
    
    要向用戶端回傳帶有錯誤的 HTTP 回應,使用 `HTTPException`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/handling-errors.md

    # エラーハンドリング { #handling-errors }
    
    APIを使用しているクライアントにエラーを通知する必要がある状況はたくさんあります。
    
    このクライアントは、フロントエンドを持つブラウザ、誰かのコード、IoTデバイスなどが考えられます。
    
    クライアントに以下のようなことを伝える必要があるかもしれません:
    
    * クライアントにはその操作のための十分な権限がありません。
    * クライアントはそのリソースにアクセスできません。
    * クライアントがアクセスしようとしていた項目が存在しません。
    * など
    
    これらの場合、通常は **400**(400から499)の範囲内の **HTTPステータスコード** を返すことになります。
    
    これは200のHTTPステータスコード(200から299)に似ています。これらの「200」ステータスコードは、何らかの形でリクエスト「成功」であったことを意味します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/handling-errors.md

    # 오류 처리 { #handling-errors }
    
    API를 사용하는 클라이언트에 오류를 알려야 하는 상황은 많이 있습니다.
    
    이 클라이언트는 프론트엔드가 있는 브라우저일 수도 있고, 다른 사람이 작성한 코드일 수도 있고, IoT 장치일 수도 있습니다.
    
    클라이언트에 다음과 같은 내용을 알려야 할 수도 있습니다:
    
    * 클라이언트가 해당 작업을 수행할 충분한 권한이 없습니다.
    * 클라이언트가 해당 리소스에 접근할 수 없습니다.
    * 클라이언트가 접근하려고 한 항목이 존재하지 않습니다.
    * 등등.
    
    이런 경우 보통 **400**번대(400에서 499) 범위의 **HTTP 상태 코드**를 반환합니다.
    
    이는 200번대 HTTP 상태 코드(200에서 299)와 비슷합니다. "200" 상태 코드는 어떤 형태로든 요청이 "성공"했음을 의미합니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  4. internal/grid/muxserver.go

    		}
    	}()
    
    	// Data inbound to the handler
    	var handlerIn chan []byte
    	if inboundCap > 0 {
    		m.inbound = make(chan []byte, inboundCap)
    		handlerIn = make(chan []byte, 1)
    		go func(inbound chan []byte) {
    			wg.Wait()
    			defer xioutil.SafeClose(handlerIn)
    			m.handleInbound(c, inbound, handlerIn)
    		}(m.inbound)
    	}
    	// Fill outbound block.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/io/PropertiesUtil.java

     *
     * @author higa
     */
    public abstract class PropertiesUtil {
    
        /**
         * Do not instantiate.
         */
        protected PropertiesUtil() {
        }
    
        /**
         * Wraps exception handling for {@link Properties#load(InputStream)}.
         * <p>
         * The input stream is not closed.
         * </p>
         *
         * @param props the property set (must not be {@literal null})
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  6. fastapi/exceptions.py

        This is for client errors, invalid authentication, invalid data, etc. Not for server
        errors in your code.
    
        Read more about it in the
        [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI, HTTPException
    
        app = FastAPI()
    
        items = {"foo": "The Foo Wrestlers"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Error handling tests for RankFusionProcessor.
     * Tests exception handling improvements including InterruptedException and ExecutionException.
     */
    public class RankFusionProcessorErrorHandlingTest extends UnitFessTestCase {
    
        private static final String ID_FIELD = "_id";
    
        /**
         * Test handling of searcher that throws RuntimeException.
         */
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/io/LineBuffer.java

        handleLine(line.toString(), separator);
        line = new StringBuilder();
        sawReturn = false;
        return sawNewline;
      }
    
      /**
       * Subclasses must call this method after finishing character processing, in order to ensure that
       * any unterminated line in the buffer is passed to {@link #handleLine}.
       *
       * @throws IOException if an I/O error occurs
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. README.md

    - **I/O Operations** (`org.codelibs.core.io`) - File handling, resource management, stream utilities, and traversal utilities for efficient resource processing
    - **Reflection** (`org.codelibs.core.lang`) - Class loading, method/field access, type introspection utilities, and generics support
    - **Exception Handling** (`org.codelibs.core.exception`) - Runtime exception wrappers for common checked exceptions with consistent error handling
    
    ### Modern Java 21 Support
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  10. docs/en/docs/how-to/custom-request-and-route.md

    * Converting non-JSON request bodies to JSON (e.g. [`msgpack`](https://msgpack.org/index.html)).
    * Decompressing gzip-compressed request bodies.
    * Automatically logging all request bodies.
    
    ## Handling custom request body encodings { #handling-custom-request-body-encodings }
    
    Let's see how to make use of a custom `Request` subclass to decompress gzip requests.
    
    And an `APIRoute` subclass to use that custom request class.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.4K bytes
    - Click Count (0)
Back to Top