Interface ResourceNotFoundError
- All Superinterfaces:
ErrorObject
Returned when the resource addressed by the request URL does not exist.
Example to create an instance using the builder pattern
ResourceNotFoundError resourceNotFoundError = ResourceNotFoundError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ResourceNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceNotFoundErrorBuilderbuilder()builder factory method for ResourceNotFoundErrorstatic ResourceNotFoundErrorBuilderbuilder(ResourceNotFoundError template) create builder for ResourceNotFoundError instancecopyDeep()static ResourceNotFoundErrordeepCopy(ResourceNotFoundError template) factory method to create a deep copy of ResourceNotFoundError@NotNull StringgetCode()Error identifier.@NotNull String"The Resource with ID $resourceId was not found."static ResourceNotFoundErrorof()factory methodstatic ResourceNotFoundErrorof(ResourceNotFoundError template) factory method to create a shallow copy ResourceNotFoundErrorvoidsetMessage(String message) "The Resource with ID $resourceId was not found."static com.fasterxml.jackson.core.type.TypeReference<ResourceNotFoundError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
RESOURCE_NOT_FOUND
discriminator value for ResourceNotFoundError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The Resource with ID $resourceId was not found."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"The Resource with ID $resourceId was not found."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of ResourceNotFoundError
-
of
factory method to create a shallow copy ResourceNotFoundError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ResourceNotFoundError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of ResourceNotFoundError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceNotFoundError- Returns:
- builder
-
builder
create builder for ResourceNotFoundError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withResourceNotFoundError
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
-