Interface GraphQLExtensionUpdateActionsFailedError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLExtensionUpdateActionsFailedError extends GraphQLErrorObject

Returned when update actions could not be applied to the resource (for example, because a referenced resource does not exist). This would result in a 400 Bad Request response if the same update action was sent from a regular client.


Example to create an instance using the builder pattern

     GraphQLExtensionUpdateActionsFailedError graphQLExtensionUpdateActionsFailedError = GraphQLExtensionUpdateActionsFailedError.builder()
             .plusExtensionErrors(extensionErrorsBuilder -> extensionErrorsBuilder)
             .build()
 
  • Field Details

    • EXTENSION_UPDATE_ACTIONS_FAILED

      static final String EXTENSION_UPDATE_ACTIONS_FAILED
      discriminator value for GraphQLExtensionUpdateActionsFailedError
      See Also:
  • Method Details

    • getCode

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

      Error identifier.

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

      @Valid @Valid LocalizedString getLocalizedMessage()

      User-defined localized description of the error.

      Returns:
      localizedMessage
    • getExtensionExtraInfo

      @Valid @Valid Object getExtensionExtraInfo()

      Any information that should be returned to the API caller.

      Returns:
      extensionExtraInfo
    • getExtensionErrors

      @NotNull @Valid @NotNull @Valid List<ExtensionError> getExtensionErrors()

      Additional errors related to the API Extension.

      Returns:
      extensionErrors
    • setLocalizedMessage

      void setLocalizedMessage(LocalizedString localizedMessage)

      User-defined localized description of the error.

      Parameters:
      localizedMessage - value to be set
    • setExtensionExtraInfo

      void setExtensionExtraInfo(Object extensionExtraInfo)

      Any information that should be returned to the API caller.

      Parameters:
      extensionExtraInfo - value to be set
    • setExtensionErrors

      void setExtensionErrors(ExtensionError... extensionErrors)

      Additional errors related to the API Extension.

      Parameters:
      extensionErrors - values to be set
    • setExtensionErrors

      void setExtensionErrors(List<ExtensionError> extensionErrors)

      Additional errors related to the API Extension.

      Parameters:
      extensionErrors - values to be set
    • of

      factory method
      Returns:
      instance of GraphQLExtensionUpdateActionsFailedError
    • of

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

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

      builder factory method for GraphQLExtensionUpdateActionsFailedError
      Returns:
      builder
    • builder

      create builder for GraphQLExtensionUpdateActionsFailedError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLExtensionUpdateActionsFailedError

      default <T> T withGraphQLExtensionUpdateActionsFailedError(Function<GraphQLExtensionUpdateActionsFailedError,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<GraphQLExtensionUpdateActionsFailedError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference