java.lang.Object
org.wso2.carbon.apimgt.rest.api.devops.dto.ErrorDTO

public class ErrorDTO extends Object
  • Constructor Details

    • ErrorDTO

      public ErrorDTO()
  • Method Details

    • code

      public ErrorDTO code(Long code)
    • getCode

      @NotNull public @NotNull Long getCode()
    • setCode

      public void setCode(Long code)
    • message

      public ErrorDTO message(String message)
      Error message.
    • getMessage

      @NotNull public @NotNull String getMessage()
    • setMessage

      public void setMessage(String message)
    • description

      public ErrorDTO description(String description)
      A detail description about the error message.
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • moreInfo

      public ErrorDTO moreInfo(String moreInfo)
      Preferably an url with more details about the error.
    • getMoreInfo

      public String getMoreInfo()
    • setMoreInfo

      public void setMoreInfo(String moreInfo)
    • error

      public ErrorDTO error(List<ErrorListItemDTO> error)
      If there are more than one error list them out. For example, list out validation errors by each field.
    • getError

      @Valid public @Valid List<ErrorListItemDTO> getError()
    • setError

      public void setError(List<ErrorListItemDTO> error)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object