Interface SyntaxErrorError
- All Superinterfaces:
ErrorObject
Returned when a Discount predicate, API Extension predicate, or search query does not have the correct syntax.
Example to create an instance using the builder pattern
SyntaxErrorError syntaxErrorError = SyntaxErrorError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyntaxErrorErrorBuilder
builder()
builder factory method for SyntaxErrorErrorstatic SyntaxErrorErrorBuilder
builder
(SyntaxErrorError template) create builder for SyntaxErrorError instancestatic SyntaxErrorError
deepCopy
(SyntaxErrorError template) factory method to create a deep copy of SyntaxErrorError@NotNull String
getCode()
Error identifier.@NotNull String
"Syntax error while parsing $fieldDefinition."
static SyntaxErrorError
of()
factory methodstatic SyntaxErrorError
of
(SyntaxErrorError template) factory method to create a shallow copy SyntaxErrorErrorvoid
setMessage
(String message) "Syntax error while parsing $fieldDefinition."
static com.fasterxml.jackson.core.type.TypeReference<SyntaxErrorError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSyntaxErrorError
(Function<SyntaxErrorError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
SYNTAX_ERROR
discriminator value for SyntaxErrorError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Syntax error while parsing $fieldDefinition."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"Syntax error while parsing $fieldDefinition."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of SyntaxErrorError
-
of
factory method to create a shallow copy SyntaxErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SyntaxErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SyntaxErrorError- Returns:
- builder
-
builder
create builder for SyntaxErrorError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSyntaxErrorError
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
-