Class ExtensionErrorImpl

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

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

    • ExtensionErrorImpl

      public ExtensionErrorImpl()
      create empty instance
  • Method Details

    • getCode

      public String getCode()

      Error code caused by the Extension. For example, InvalidField.

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

      public String getMessage()

      Plain text description of the error.

      Specified by:
      getMessage in interface ExtensionError
      Returns:
      message
    • getExtensionId

      public String getExtensionId()

      Unique identifier of the Extension.

      Specified by:
      getExtensionId in interface ExtensionError
      Returns:
      extensionId
    • getExtensionKey

      public String getExtensionKey()

      User-defined unique identifier of the Extension.

      Specified by:
      getExtensionKey in interface ExtensionError
      Returns:
      extensionKey
    • values

      public Map<String,Object> values()

      Error-specific additional fields.

      Specified by:
      values in interface ExtensionError
      Returns:
      map of the pattern property values
    • setCode

      public void setCode(String code)
      Description copied from interface: ExtensionError

      Error code caused by the Extension. For example, InvalidField.

      Specified by:
      setCode in interface ExtensionError
      Parameters:
      code - value to be set
    • setMessage

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

      Plain text description of the error.

      Specified by:
      setMessage in interface ExtensionError
      Parameters:
      message - value to be set
    • setExtensionId

      public void setExtensionId(String extensionId)
      Description copied from interface: ExtensionError

      Unique identifier of the Extension.

      Specified by:
      setExtensionId in interface ExtensionError
      Parameters:
      extensionId - value to be set
    • setExtensionKey

      public void setExtensionKey(String extensionKey)
      Description copied from interface: ExtensionError

      User-defined unique identifier of the Extension.

      Specified by:
      setExtensionKey in interface ExtensionError
      Parameters:
      extensionKey - value to be set
    • setValue

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

      Error-specific additional fields.

      Specified by:
      setValue in interface ExtensionError
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • copyDeep

      public ExtensionError copyDeep()
      Specified by:
      copyDeep in interface ExtensionError