Interface GraphQLLockedFieldError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLLockedFieldError extends GraphQLErrorObject

Returned when two Customers are simultaneously created or updated with the same email address.

To confirm if the operation was successful, repeat the request.


Example to create an instance using the builder pattern

     GraphQLLockedFieldError graphQLLockedFieldError = GraphQLLockedFieldError.builder()
             .field("{field}")
             .build()
 
  • Field Details

  • Method Details

    • getField

      @NotNull @NotNull String getField()

      Field that is currently locked.

      Returns:
      field
    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: GraphQLErrorObject

      One of the error codes that is listed on the Errors page.

      Specified by:
      getCode in interface GraphQLErrorObject
      Returns:
      code
    • setField

      void setField(String field)

      Field that is currently locked.

      Parameters:
      field - value to be set
    • of

      factory method
      Returns:
      instance of GraphQLLockedFieldError
    • of

      factory method to create a shallow copy GraphQLLockedFieldError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of GraphQLLockedFieldError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for GraphQLLockedFieldError
      Returns:
      builder
    • builder

      create builder for GraphQLLockedFieldError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLLockedFieldError

      default <T> T withGraphQLLockedFieldError(Function<GraphQLLockedFieldError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GraphQLLockedFieldError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference