CustomError
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe provided content describes a custom error structure using a JSON representation.\u003c/p\u003e\n"],["\u003cp\u003eThe error structure includes a \u003ccode\u003ecode\u003c/code\u003e field, which is an enumeration of \u003ccode\u003eCustomErrorCode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe error structure also includes a \u003ccode\u003emessage\u003c/code\u003e field, which is a string containing the error description.\u003c/p\u003e\n"],["\u003cp\u003eThe schema representation is provided within the context of a table that shows the JSON representation as well as a separate table for the fields.\u003c/p\u003e\n"]]],["The JSON representation for a custom error includes two fields: `code` and `message`. The `code` field is an enumerated value from `CustomErrorCode`, representing a specific error type. The `message` field is a string providing a detailed description of the error. This structure is used to communicate custom error information, utilizing a defined error code and an accompanying message.\n"],null,["# CustomError\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nCustom error.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------|---|\n| ``` { \"code\": enum (/zero-touch/reference/reseller/rest/v1/CustomErrorCode), \"message\": string } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------|\n| `code` | `enum (`[CustomErrorCode](/zero-touch/reference/reseller/rest/v1/CustomErrorCode)`)` The custom error code. |\n| `message` | `string` The error message. |"]]