ErrorCode
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
ERROR_CODE_UNSPECIFIED |
未指定错误代码。 |
UNVERIFIED_LOCATION |
此营业地点未经验证。 |
INVALID_LOCATION_CATEGORY |
营业地点类别不符合地点操作类型的条件。元数据中将返回导致错误的地点操作类型,其中,字符串“placeActionType”是键,PlaceActionType 枚举值字符串是值。 |
INVALID_URL |
网址格式不正确/无效。系统会在元数据中返回无效的地点操作网址,将字符串“url”作为键,将网址作为值。 |
URL_PROVIDER_NOT_ALLOWED |
网址中包含不允许使用的提供商。元数据中将返回不允许使用的地点操作网址,将字符串“url”作为键,将网址作为值。 |
TOO_MANY_VALUES |
为该地点操作类型设置的值过多。达到该限制的类型会在元数据中返回,其中字符串“placeActionType”作为键,PlaceActionType 枚举值字符串作为值。 |
DELETED_LINK |
请求的地点操作链接已被删除。相应的网址将在元数据中返回,其中字符串“url”作为键,网址作为值。 |
LINK_ALREADY_EXISTS |
正在请求更新,以对指定位置具有相同 URI 和类型的地点操作链接进行转换。 |
SCALABLE_DEEP_LINK_INVALID_MULTIPLICITY |
链接中包含的网域已被使用,每个 PlaceActionType 在每个网域内最多只能有一个链接。 |
LINK_DOES_NOT_EXIST |
指定的链接在数据库中找不到。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis documentation details error codes specifically related to internal failures within a system.\u003c/p\u003e\n"],["\u003cp\u003eThese error codes cover various scenarios including location verification issues, invalid URLs, and problems with place action links.\u003c/p\u003e\n"],["\u003cp\u003eEach error code provides specific details about the failure, often including metadata with further information.\u003c/p\u003e\n"],["\u003cp\u003eUnderstanding these error codes will help developers diagnose and troubleshoot integration problems.\u003c/p\u003e\n"]]],[],null,["# ErrorCode\n\nError codes for internal failures.\n\n| Enums ||\n|-------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ERROR_CODE_UNSPECIFIED` | Unspecified error code. |\n| `UNVERIFIED_LOCATION` | The location is not verified. |\n| `INVALID_LOCATION_CATEGORY` | The location category is not eligible for the place action type. The place action type causing the error will be returned in the metadata, with string \"placeActionType\" as the key and [PlaceActionType](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionType) enum value string as the value. |\n| `INVALID_URL` | The url is malformed/invalid. The place action url that is invalid will be returned in the metadata, with the string \"url\" as the key and the url as the value. |\n| `URL_PROVIDER_NOT_ALLOWED` | The url has a provider that is not allowed. The place action url that is disallowed will be returned in the metadata, with the string \"url\" as the key and the url as the value. |\n| `TOO_MANY_VALUES` | Too many values have been set for the place action type. The type for which the limit is reached will be returned in the metadata, with the string \"placeActionType\" as the key and [PlaceActionType](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionType) enum value string as the value. |\n| `DELETED_LINK` | The requested place action link has been deleted. The corresponding url will be returned in the metadata, with the string \"url\" as the key and the url as the value. |\n| `LINK_ALREADY_EXISTS` | An update is being requested to convert a place action link to one that already exists, with the same uri and type at the specified location. |\n| `SCALABLE_DEEP_LINK_INVALID_MULTIPLICITY` | The domain that the link contains has already been used, and there is a limit of one link per domain for each PlaceActionType. |\n| `LINK_DOES_NOT_EXIST` | A link has been specified that cannot be found in the database. |"]]