遠端服務程式庫例外狀況
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
protorpc.remote
套件提供下列的例外狀況類別:
- class ApplicationError()
- 引發時機:發生應用程式特定錯誤。
- class MethodNotFoundError()
- 當 RPC 要求不明方法時,就會發生這種例外狀況。
- class NetworkError()
- 在 RPC 期間發生網路錯誤時觸發。
- class RequestError()
- 在方法叫用期間收到錯誤的要求物件時觸發。
- class RpcError()
- 這是本套件中所有例外狀況的基本類別。
- class ServerError()
- 當伺服器發生非預期錯誤時,系統會擲回此例外狀況。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-12 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-06-12 (世界標準時間)。"],[[["`protorpc.remote` includes exception classes for handling various errors during remote procedure calls (RPCs)."],["`RpcError` serves as the base class for all exceptions within the `protorpc.remote` package."],["`ApplicationError` is raised for errors specific to the application, while `NetworkError` indicates network-related issues."],["`MethodNotFoundError` is thrown when an RPC requests an unknown method."],["`RequestError` is raised when the method receives an incorrect object type."]]],[]]