Interface FeatureRemovedError

All Superinterfaces:
ErrorObject

public interface FeatureRemovedError extends ErrorObject

Returned when the requested feature was removed.


Example to create an instance using the builder pattern

     FeatureRemovedError featureRemovedError = FeatureRemovedError.builder()
             .message("{message}")
             .build()
 
  • Field Details

  • Method Details

    • getCode

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

      Error identifier.

      Specified by:
      getCode in interface ErrorObject
      Returns:
      code
    • getMessage

      @NotNull @NotNull String getMessage()

      Description of the feature that is removed.

      Specified by:
      getMessage in interface ErrorObject
      Returns:
      message
    • setMessage

      void setMessage(String message)

      Description of the feature that is removed.

      Specified by:
      setMessage in interface ErrorObject
      Parameters:
      message - value to be set
    • of

      static FeatureRemovedError of()
      factory method
      Returns:
      instance of FeatureRemovedError
    • of

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

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

      static FeatureRemovedErrorBuilder builder()
      builder factory method for FeatureRemovedError
      Returns:
      builder
    • builder

      create builder for FeatureRemovedError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withFeatureRemovedError

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