Class ErrorResponseImpl

java.lang.Object
com.commercetools.importapi.models.errors.ErrorResponseImpl
All Implemented Interfaces:
ErrorResponse, io.vrap.rmf.base.client.ModelBase

public class ErrorResponseImpl extends Object implements ErrorResponse, io.vrap.rmf.base.client.ModelBase

The response in case of an error.

  • Constructor Details

    • ErrorResponseImpl

      public ErrorResponseImpl()
      create empty instance
  • Method Details

    • getStatusCode

      public Integer getStatusCode()

      The http status code of the response.

      Specified by:
      getStatusCode in interface ErrorResponse
      Returns:
      statusCode
    • getMessage

      public String getMessage()

      Describes the error.

      Specified by:
      getMessage in interface ErrorResponse
      Returns:
      message
    • getError

      public String getError()

      This property is only used for OAuth2 errors. Contains the error code.

      Specified by:
      getError in interface ErrorResponse
      Returns:
      error
    • getErrorDescription

      public String getErrorDescription()

      This property is only used for OAuth2 errors. Additional information to assist the client developer in understanding the error.

      Specified by:
      getErrorDescription in interface ErrorResponse
      Returns:
      error_description
    • getErrors

      public List<ErrorObject> getErrors()

      The errors that caused this error response.

      Specified by:
      getErrors in interface ErrorResponse
      Returns:
      errors
    • setStatusCode

      public void setStatusCode(Integer statusCode)
      Description copied from interface: ErrorResponse

      The http status code of the response.

      Specified by:
      setStatusCode in interface ErrorResponse
      Parameters:
      statusCode - value to be set
    • setMessage

      public void setMessage(String message)
      Description copied from interface: ErrorResponse

      Describes the error.

      Specified by:
      setMessage in interface ErrorResponse
      Parameters:
      message - value to be set
    • setError

      public void setError(String error)
      Description copied from interface: ErrorResponse

      This property is only used for OAuth2 errors. Contains the error code.

      Specified by:
      setError in interface ErrorResponse
      Parameters:
      error - value to be set
    • setErrorDescription

      public void setErrorDescription(String errorDescription)
      Description copied from interface: ErrorResponse

      This property is only used for OAuth2 errors. Additional information to assist the client developer in understanding the error.

      Specified by:
      setErrorDescription in interface ErrorResponse
      Parameters:
      errorDescription - value to be set
    • setErrors

      public void setErrors(ErrorObject... errors)
      Description copied from interface: ErrorResponse

      The errors that caused this error response.

      Specified by:
      setErrors in interface ErrorResponse
      Parameters:
      errors - values to be set
    • setErrors

      public void setErrors(List<ErrorObject> errors)
      Description copied from interface: ErrorResponse

      The errors that caused this error response.

      Specified by:
      setErrors in interface ErrorResponse
      Parameters:
      errors - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object