Class RequiredFieldErrorImpl
java.lang.Object
com.commercetools.api.models.error.RequiredFieldErrorImpl
- All Implemented Interfaces:
ErrorObject,RequiredFieldError,io.vrap.rmf.base.client.ModelBase
public class RequiredFieldErrorImpl
extends Object
implements RequiredFieldError, io.vrap.rmf.base.client.ModelBase
Returned when a value is not defined for a required field.
-
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.RequiredFieldError
REQUIRED_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()booleangetCode()Error identifier.getField()Name of the field missing the value."A value is required for field $field."inthashCode()voidName of the field missing the value.voidsetMessage(String message) "A value is required for field $field."voidError-specific additional fields.toString()values()Error-specific additional fields.Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObjectMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.api.models.error.RequiredFieldError
withRequiredFieldError
-
Constructor Details
-
RequiredFieldErrorImpl
public RequiredFieldErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Specified by:
getCodein interfaceRequiredFieldError- Returns:
- code
-
getMessage
"A value is required for field $field."- Specified by:
getMessagein interfaceErrorObject- Specified by:
getMessagein interfaceRequiredFieldError- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
valuesin interfaceErrorObject- Returns:
- map of the pattern property values
-
getField
Name of the field missing the value.
- Specified by:
getFieldin interfaceRequiredFieldError- Returns:
- field
-
setMessage
Description copied from interface:RequiredFieldError"A value is required for field $field."- Specified by:
setMessagein interfaceErrorObject- Specified by:
setMessagein interfaceRequiredFieldError- Parameters:
message- value to be set
-
setValue
Description copied from interface:ErrorObjectError-specific additional fields.
- Specified by:
setValuein interfaceErrorObject- Parameters:
key- property namevalue- property value
-
setField
Description copied from interface:RequiredFieldErrorName of the field missing the value.
- Specified by:
setFieldin interfaceRequiredFieldError- Parameters:
field- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-
copyDeep
- Specified by:
copyDeepin interfaceErrorObject- Specified by:
copyDeepin interfaceRequiredFieldError
-