java.lang.Object
com.liferay.headless.commerce.admin.catalog.dto.v1_0.Error
All Implemented Interfaces:
Serializable

@Generated("") public class Error extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • errorCode

      @NotNull protected @NotNull Integer errorCode
    • errorDescription

      @NotEmpty protected @NotEmpty String errorDescription
    • message

      @NotEmpty protected @NotEmpty String message
    • status

      @NotNull protected @NotNull Integer status
    • xClassName

      public String xClassName
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • toDTO

      public static Error toDTO(String json)
    • unsafeToDTO

      public static Error unsafeToDTO(String json)
    • getErrorCode

      public Integer getErrorCode()
    • setErrorCode

      public void setErrorCode(Integer errorCode)
    • setErrorCode

      public void setErrorCode(com.liferay.petra.function.UnsafeSupplier<Integer,Exception> errorCodeUnsafeSupplier)
    • getErrorDescription

      public String getErrorDescription()
    • setErrorDescription

      public void setErrorDescription(String errorDescription)
    • setErrorDescription

      public void setErrorDescription(com.liferay.petra.function.UnsafeSupplier<String,Exception> errorDescriptionUnsafeSupplier)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • setMessage

      public void setMessage(com.liferay.petra.function.UnsafeSupplier<String,Exception> messageUnsafeSupplier)
    • getStatus

      public Integer getStatus()
    • setStatus

      public void setStatus(Integer status)
    • setStatus

      public void setStatus(com.liferay.petra.function.UnsafeSupplier<Integer,Exception> statusUnsafeSupplier)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object