Interface ExtensionNoResponseError
- All Superinterfaces:
ErrorObject
- All Known Implementing Classes:
ExtensionNoResponseErrorImpl
Returned when the API Extension does not respond within the time limit, or could not be reached.
Example to create an instance using the builder pattern
ExtensionNoResponseError extensionNoResponseError = ExtensionNoResponseError.builder()
.message("{message}")
.extensionId("{extensionId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ExtensionNoResponseError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExtensionNoResponseErrorbuilder
(ExtensionNoResponseError template) create builder for ExtensionNoResponseError instancestatic ExtensionNoResponseError
deepCopy
(ExtensionNoResponseError template) factory method to create a deep copy of ExtensionNoResponseError@NotNull String
getCode()
Error identifier.@NotNull String
Unique identifier of the API Extension.User-defined unique identifier of the API Extension, if available.@NotNull String
"Extension did not respond in time."
static ExtensionNoResponseError
of()
factory methodstatic ExtensionNoResponseError
of
(ExtensionNoResponseError template) factory method to create a shallow copy ExtensionNoResponseErrorvoid
setExtensionId
(String extensionId) Unique identifier of the API Extension.void
setExtensionKey
(String extensionKey) User-defined unique identifier of the API Extension, if available.void
setMessage
(String message) "Extension did not respond in time."
static com.fasterxml.jackson.core.type.TypeReference<ExtensionNoResponseError>
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
-
EXTENSION_NO_RESPONSE
discriminator value for ExtensionNoResponseError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Extension did not respond in time."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getExtensionId
Unique identifier of the API Extension.
- Returns:
- extensionId
-
getExtensionKey
String getExtensionKey()User-defined unique identifier of the API Extension, if available.
- Returns:
- extensionKey
-
setMessage
"Extension did not respond in time."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setExtensionId
Unique identifier of the API Extension.
- Parameters:
extensionId
- value to be set
-
setExtensionKey
User-defined unique identifier of the API Extension, if available.
- Parameters:
extensionKey
- value to be set
-
of
factory method- Returns:
- instance of ExtensionNoResponseError
-
of
factory method to create a shallow copy ExtensionNoResponseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ExtensionNoResponseError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionNoResponseError- Returns:
- builder
-
builder
create builder for ExtensionNoResponseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionNoResponseError
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
-