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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ResourceNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceNotFoundErrorBuilder
builder()
builder factory method for ResourceNotFoundErrorstatic ResourceNotFoundErrorBuilder
builder
(ResourceNotFoundError template) create builder for ResourceNotFoundError instancestatic ResourceNotFoundError
deepCopy
(ResourceNotFoundError template) factory method to create a deep copy of ResourceNotFoundError@NotNull String
getCode()
Error identifier.@NotNull String
"The Resource with ID $resourceId was not found."
static ResourceNotFoundError
of()
factory methodstatic ResourceNotFoundError
of
(ResourceNotFoundError template) factory method to create a shallow copy ResourceNotFoundErrorvoid
setMessage
(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> T
accessor 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:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The Resource with ID $resourceId was not found."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The Resource with ID $resourceId was not found."
- Specified by:
setMessage
in 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
-
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
-