Interface InvalidInputError
- All Superinterfaces:
ErrorObject
Returned when an invalid input has been sent.
Example to create an instance using the builder pattern
InvalidInputError invalidInputError = InvalidInputError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidInputErrorBuilder
builder()
builder factory method for InvalidInputErrorstatic InvalidInputErrorBuilder
builder
(InvalidInputError template) create builder for InvalidInputError instancestatic InvalidInputError
deepCopy
(InvalidInputError template) factory method to create a deep copy of InvalidInputError@NotNull String
getCode()
Error identifier.@NotNull String
Description of the constraints that are not met by the request.static InvalidInputError
of()
factory methodstatic InvalidInputError
of
(InvalidInputError template) factory method to create a shallow copy InvalidInputErrorvoid
setMessage
(String message) Description of the constraints that are not met by the request.static com.fasterxml.jackson.core.type.TypeReference<InvalidInputError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInvalidInputError
(Function<InvalidInputError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
INVALID_INPUT
discriminator value for InvalidInputError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
Description of the constraints that are not met by the request. For example,
"Invalid $propertyName. It may be a non-empty string up to $maxLength"
.- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
Description of the constraints that are not met by the request. For example,
"Invalid $propertyName. It may be a non-empty string up to $maxLength"
.- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of InvalidInputError
-
of
factory method to create a shallow copy InvalidInputError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InvalidInputError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidInputError- Returns:
- builder
-
builder
create builder for InvalidInputError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidInputError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-