Class InvalidFieldErrorImpl
java.lang.Object
com.commercetools.api.models.error.InvalidFieldErrorImpl
- All Implemented Interfaces:
ErrorObject
,InvalidFieldError
,io.vrap.rmf.base.client.ModelBase
public class InvalidFieldErrorImpl
extends Object
implements InvalidFieldError, io.vrap.rmf.base.client.ModelBase
Returned when a field has an invalid value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.InvalidFieldError
INVALID_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Fixed set of allowed values for the field, if any.getCode()
Error identifier.getField()
Name of the field with the invalid value.Value invalid for the field."The value $invalidValue is not valid for field $field."
int
hashCode()
void
setAllowedValues
(Object... allowedValues) Fixed set of allowed values for the field, if any.void
setAllowedValues
(List<Object> allowedValues) Fixed set of allowed values for the field, if any.void
Name of the field with the invalid value.void
setInvalidValue
(Object invalidValue) Value invalid for the field.void
setMessage
(String message) "The value $invalidValue is not valid for field $field."
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.api.models.error.InvalidFieldError
withInvalidFieldError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InvalidFieldErrorImpl
public InvalidFieldErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceInvalidFieldError
- Returns:
- code
-
getMessage
"The value $invalidValue is not valid for field $field."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceInvalidFieldError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getField
Name of the field with the invalid value.
- Specified by:
getField
in interfaceInvalidFieldError
- Returns:
- field
-
getInvalidValue
Value invalid for the field.
- Specified by:
getInvalidValue
in interfaceInvalidFieldError
- Returns:
- invalidValue
-
getAllowedValues
Fixed set of allowed values for the field, if any.
- Specified by:
getAllowedValues
in interfaceInvalidFieldError
- Returns:
- allowedValues
-
setMessage
Description copied from interface:InvalidFieldError
"The value $invalidValue is not valid for field $field."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceInvalidFieldError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setField
Description copied from interface:InvalidFieldError
Name of the field with the invalid value.
- Specified by:
setField
in interfaceInvalidFieldError
- Parameters:
field
- value to be set
-
setInvalidValue
Description copied from interface:InvalidFieldError
Value invalid for the field.
- Specified by:
setInvalidValue
in interfaceInvalidFieldError
- Parameters:
invalidValue
- value to be set
-
setAllowedValues
Description copied from interface:InvalidFieldError
Fixed set of allowed values for the field, if any.
- Specified by:
setAllowedValues
in interfaceInvalidFieldError
- Parameters:
allowedValues
- values to be set
-
setAllowedValues
Description copied from interface:InvalidFieldError
Fixed set of allowed values for the field, if any.
- Specified by:
setAllowedValues
in interfaceInvalidFieldError
- Parameters:
allowedValues
- values to be set
-
equals
-
hashCode
-