CustomError
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]