CustomError
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe provided content defines a custom error structure for API responses.\u003c/p\u003e\n"],["\u003cp\u003eThe custom error is represented in JSON format with two fields: \u003ccode\u003ecode\u003c/code\u003e and \u003ccode\u003emessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecode\u003c/code\u003e field is an enumeration (\u003ccode\u003eenum\u003c/code\u003e) that refers to a specific \u003ccode\u003eCustomErrorCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emessage\u003c/code\u003e field is a string containing the error's description.\u003c/p\u003e\n"]]],["The core content defines a custom error using a JSON representation. This representation includes two fields: `code` and `message`. The `code` field is an enumerated type referencing `CustomErrorCode`, specifying the particular custom error. The `message` field is a string that provides a description of the error. The information is structured to provide specific error identification and a related description.\n"],null,["# CustomError\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nCustom error.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------|\n| ``` { \"code\": enum (/zero-touch/reference/customer/rest/v1/CustomErrorCode), \"message\": string } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------|\n| `code` | `enum (`[CustomErrorCode](/zero-touch/reference/customer/rest/v1/CustomErrorCode)`)` The custom error code. |\n| `message` | `string` The error message. |"]]