Interface GraphQLMissingRoleOnChannelError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLMissingRoleOnChannelErrorImpl

Returned when one of the following states occur:

  • Channel is added or set on a Store with missing Channel roles.
  • Standalone Price references a Channel that does not contain the ProductDistribution role.

The error is returned as a failed response to:

  • Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
  • Create a Standalone Price request.

Example to create an instance using the builder pattern

     GraphQLMissingRoleOnChannelError graphQLMissingRoleOnChannelError = GraphQLMissingRoleOnChannelError.builder()
             .missingRole(ChannelRoleEnum.INVENTORY_SUPPLY)
             .build()