Interface ObjectNotFoundError
- All Superinterfaces:
ErrorObject
Returned if the requested resource was not found or the Product Search index is inactive.
Example to create an instance using the builder pattern
ObjectNotFoundError objectNotFoundError = ObjectNotFoundError.builder()
.message("{message}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNotFoundErrorBuilderbuilder()builder factory method for ObjectNotFoundErrorstatic ObjectNotFoundErrorBuilderbuilder(ObjectNotFoundError template) create builder for ObjectNotFoundError instancecopyDeep()static ObjectNotFoundErrordeepCopy(ObjectNotFoundError template) factory method to create a deep copy of ObjectNotFoundError@NotNull StringgetCode()Error identifier.@NotNull String"A $resourceType with identifier $id was unexpectedly not found."orstatic ObjectNotFoundErrorof()factory methodstatic ObjectNotFoundErrorof(ObjectNotFoundError template) factory method to create a shallow copy ObjectNotFoundErrorvoidsetMessage(String message) "A $resourceType with identifier $id was unexpectedly not found."orstatic com.fasterxml.jackson.core.type.TypeReference<ObjectNotFoundError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithObjectNotFoundError(Function<ObjectNotFoundError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
OBJECT_NOT_FOUND
discriminator value for ObjectNotFoundError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"A $resourceType with identifier $id was unexpectedly not found."or"No index found for project"- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"A $resourceType with identifier $id was unexpectedly not found."or"No index found for project"- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of ObjectNotFoundError
-
of
factory method to create a shallow copy ObjectNotFoundError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ObjectNotFoundError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of ObjectNotFoundError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ObjectNotFoundError- Returns:
- builder
-
builder
create builder for ObjectNotFoundError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withObjectNotFoundError
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
-