Class InvalidTokenErrorImpl

java.lang.Object
com.commercetools.api.models.error.InvalidTokenErrorImpl
All Implemented Interfaces:
ErrorObject, InvalidTokenError, io.vrap.rmf.base.client.ModelBase

public class InvalidTokenErrorImpl extends Object implements InvalidTokenError, io.vrap.rmf.base.client.ModelBase
InvalidTokenError
  • Constructor Details

    • InvalidTokenErrorImpl

      public InvalidTokenErrorImpl()
      create empty instance
  • Method Details

    • getCode

      public String getCode()

      Error identifier.

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

      public String getMessage()

      Plain text description of the cause of the error.

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

      public Map<String,Object> values()

      Error-specific additional fields.

      Specified by:
      values in interface ErrorObject
      Returns:
      map of the pattern property values
    • setMessage

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

      Plain text description of the cause of the error.

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

      public void setValue(String key, Object value)
      Description copied from interface: ErrorObject

      Error-specific additional fields.

      Specified by:
      setValue in interface ErrorObject
      Parameters:
      key - property name
      value - property value
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object