ErrorCode
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ErrorDetail
的错误代码:
- 1 到 199:适用于所有字段的常见错误代码。
- 1000 至 1099:与照片相关的错误代码。
- 1100 到 1199:与地址和纬度/经度相关的错误代码。
- 1200 到 1299:与类别相关的错误代码。
- 1300 到 1399:操作相关的错误代码。
枚举 |
ERROR_CODE_UNSPECIFIED |
无限别名错误代码。 |
MISSING_VALUE |
未提供所需的值。 |
INVALID_VALUE |
提供的值无效。 |
INVALID_CHARACTERS |
发现无效字符。 |
TOO_MANY_ITEMS |
在重复字段中提供的项目数超过了上限。 |
READ_ONLY |
无法修改只读字段。 |
OVERLAPPING_RANGES |
重复字段中的项是相互重叠的范围。 |
INVERTED_RANGE |
提供的范围相反。这也包括空范围的情况。 |
VALUE_OUTSIDE_ALLOWED_RANGE |
提供的值超出了允许的范围。 |
MISSING_DEPENDENT_FIELD |
缺少必需的依存字段。 |
FIELD_HAS_DEPENDENCIES |
相关字段是必填字段,无法移除。 |
UNSUPPORTED_VALUE |
由于可能存在其他限制,所提供的值可能有效。 |
EXPIRED_VALUE |
提供的值已过期且不再有效。 |
PHOTO_FETCH_FAILED |
未能从指定网址提取照片。 |
PHOTO_UPLOAD_FAILED |
未能从指定网址上传照片。 |
GEOCODE_ERROR |
自动确定纬度/经度时出错。 |
LAT_LNG_OUTSIDE_COUNTRY |
提供的纬度/经度不在提供的国家/地区范围内。 |
LAT_LNG_REQUIRED |
必须提供纬度和经度。 |
LAT_LNG_TOO_FAR_FROM_ADDRESS |
纬度/经度与地址对之间的距离太远。 |
CATEGORY_NOT_VERIFIED |
提供的类别未经验证。 |
OPERATION_EXECUTION_ERROR |
一般操作执行错误。 |
OPERATION_UNSUPPORTED_UNDER_ACCOUNT_CONDITION |
由于帐号状况,系统不支持这项操作。 |
LOCATION_DISABLED_FOR_LOCAL_POST_API |
Location Post API 已停用位置功能。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eErrorDetail\u003c/code\u003e codes are categorized: 1-199 (general), 1000-1099 (photos), 1100-1199 (address/location), 1200-1299 (category), and 1300-1399 (operation).\u003c/p\u003e\n"],["\u003cp\u003eCommon error codes include unspecified errors, missing or invalid values, invalid characters, and exceeding item limits.\u003c/p\u003e\n"],["\u003cp\u003eLocation-specific errors address issues with geocoding, latitude/longitude accuracy, and location restrictions.\u003c/p\u003e\n"],["\u003cp\u003ePhoto errors indicate failures in fetching or uploading images from provided URLs.\u003c/p\u003e\n"],["\u003cp\u003eOperational and categorical errors cover unsupported values, verification issues, and account-related limitations.\u003c/p\u003e\n"]]],[],null,["# ErrorCode\n\nError codes for `ErrorDetail`:\n\n- 1 to 199: common error codes that apply to all fields.\n- 1000 to 1099: photos-related error codes.\n- 1100 to 1199: address- and latitude/longitude-related error codes.\n- 1200 to 1299: category-related error codes.\n- 1300 to 1399: operation related error codes.\n\n\u003cbr /\u003e\n\n| Enums ||\n|-------------------------------------------------|---------------------------------------------------------------------------------------|\n| `ERROR_CODE_UNSPECIFIED` | Catch-all error code. |\n| `MISSING_VALUE` | A required value was not provided. |\n| `INVALID_VALUE` | An invalid value was provided. |\n| `INVALID_CHARACTERS` | Invalid characters were found. |\n| `TOO_MANY_ITEMS` | More than the maximum number of items was provided in a repeated field. |\n| `READ_ONLY` | Read-only field cannot be modified. |\n| `OVERLAPPING_RANGES` | Items in a repeated field are ranges that overlap with one another. |\n| `INVERTED_RANGE` | The range provided is inverted. This also includes the case of an empty range. |\n| `VALUE_OUTSIDE_ALLOWED_RANGE` | The value provided is outside of its allowed range. |\n| `MISSING_DEPENDENT_FIELD` | Required dependent field not present. |\n| `FIELD_HAS_DEPENDENCIES` | Field required by dependent field and cannot be removed. |\n| `UNSUPPORTED_VALUE` | The provided value, although possibly valid, is unsupported due to other constraints. |\n| `EXPIRED_VALUE` | The provided value has expired and is no longer valid. |\n| `PHOTO_FETCH_FAILED` | Fetch photo from the specified URL failed. |\n| `PHOTO_UPLOAD_FAILED` | Upload photo from the specified URL failed. |\n| `GEOCODE_ERROR` | There was an error automatically determining latitude/longitude. |\n| `LAT_LNG_OUTSIDE_COUNTRY` | The latitude/longitude provided does not lie in the country provided. |\n| `LAT_LNG_REQUIRED` | Latitude and Longitude must be provided. |\n| `LAT_LNG_TOO_FAR_FROM_ADDRESS` | The latitude/longitude and address pair are too far apart. |\n| `CATEGORY_NOT_VERIFIED` | Category provided is not verified. |\n| `OPERATION_EXECUTION_ERROR` | Generic operation execution error. |\n| `OPERATION_UNSUPPORTED_UNDER_ACCOUNT_CONDITION` | Operation is not supported due to account condition. |\n| `LOCATION_DISABLED_FOR_LOCAL_POST_API` | Location Disabled for Local Post API. |"]]