---
title: "PublicationUserError"
description: "定义在管理 Publication 时遇到的错误。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/apps/objects/publication-user-error'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/apps/objects/publication-user-error.md'
---
# PublicationUserError

定义在管理 Publication 时遇到的错误。

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`PublicationUserError`

## Fields

* `code`

  [PublicationUserErrorCode](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/apps/enums/publication-user-error-code.md)

  表示错误类型的代码。

* `field`

  [[String]!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/string.md)

  导致错误的输入字段路径。

* `message`

  [String!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/string.md)

  描述错误的详细信息。

## Schema Definition

```graphql
type PublicationUserError { 
	code: PublicationUserErrorCode
	field: [String]!
	message: String! 
}
```

## Field from

* [PublicationUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/apps/objects/publication-update-payload.md).userErrors

  执行过程中发生的错误列表。

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

