Class ExtensionBadResponseErrorImpl
- All Implemented Interfaces:
ErrorObject
,ExtensionBadResponseError
,io.vrap.rmf.base.client.ModelBase
Returned when the response from the API Extension could not be parsed successfully (such as a 500
HTTP status code, or an invalid JSON response).
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.ExtensionBadResponseError
EXTENSION_BAD_RESPONSE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.The response body returned by the Extension.Additional errors related to the API Extension.Any information that should be returned to the API caller.Unique identifier of the Extension.User-defined unique identifier of the Extension.Http status code returned by the Extension.User-defined localized description of the error.Description of the invalid Extension response.int
hashCode()
void
setExtensionBody
(String extensionBody) The response body returned by the Extension.void
setExtensionErrors
(ExtensionError... extensionErrors) Additional errors related to the API Extension.void
setExtensionErrors
(List<ExtensionError> extensionErrors) Additional errors related to the API Extension.void
setExtensionExtraInfo
(Object extensionExtraInfo) Any information that should be returned to the API caller.void
setExtensionId
(String extensionId) Unique identifier of the Extension.void
setExtensionKey
(String extensionKey) User-defined unique identifier of the Extension.void
setExtensionStatusCode
(Integer extensionStatusCode) Http status code returned by the Extension.void
setLocalizedMessage
(LocalizedString localizedMessage) User-defined localized description of the error.void
setMessage
(String message) Description of the invalid Extension response.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.api.models.error.ExtensionBadResponseError
withExtensionBadResponseError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ExtensionBadResponseErrorImpl
public ExtensionBadResponseErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceExtensionBadResponseError
- Returns:
- code
-
getMessage
Description of the invalid Extension response. For example,
"The extension did not return the expected JSON."
.- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceExtensionBadResponseError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getLocalizedMessage
User-defined localized description of the error.
- Specified by:
getLocalizedMessage
in interfaceExtensionBadResponseError
- Returns:
- localizedMessage
-
getExtensionExtraInfo
Any information that should be returned to the API caller.
- Specified by:
getExtensionExtraInfo
in interfaceExtensionBadResponseError
- Returns:
- extensionExtraInfo
-
getExtensionErrors
Additional errors related to the API Extension.
- Specified by:
getExtensionErrors
in interfaceExtensionBadResponseError
- Returns:
- extensionErrors
-
getExtensionBody
The response body returned by the Extension.
- Specified by:
getExtensionBody
in interfaceExtensionBadResponseError
- Returns:
- extensionBody
-
getExtensionStatusCode
Http status code returned by the Extension.
- Specified by:
getExtensionStatusCode
in interfaceExtensionBadResponseError
- Returns:
- extensionStatusCode
-
getExtensionId
Unique identifier of the Extension.
- Specified by:
getExtensionId
in interfaceExtensionBadResponseError
- Returns:
- extensionId
-
getExtensionKey
User-defined unique identifier of the Extension.
- Specified by:
getExtensionKey
in interfaceExtensionBadResponseError
- Returns:
- extensionKey
-
setMessage
Description copied from interface:ExtensionBadResponseError
Description of the invalid Extension response. For example,
"The extension did not return the expected JSON."
.- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceExtensionBadResponseError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setLocalizedMessage
Description copied from interface:ExtensionBadResponseError
User-defined localized description of the error.
- Specified by:
setLocalizedMessage
in interfaceExtensionBadResponseError
- Parameters:
localizedMessage
- value to be set
-
setExtensionExtraInfo
Description copied from interface:ExtensionBadResponseError
Any information that should be returned to the API caller.
- Specified by:
setExtensionExtraInfo
in interfaceExtensionBadResponseError
- Parameters:
extensionExtraInfo
- value to be set
-
setExtensionErrors
Description copied from interface:ExtensionBadResponseError
Additional errors related to the API Extension.
- Specified by:
setExtensionErrors
in interfaceExtensionBadResponseError
- Parameters:
extensionErrors
- values to be set
-
setExtensionErrors
Description copied from interface:ExtensionBadResponseError
Additional errors related to the API Extension.
- Specified by:
setExtensionErrors
in interfaceExtensionBadResponseError
- Parameters:
extensionErrors
- values to be set
-
setExtensionBody
Description copied from interface:ExtensionBadResponseError
The response body returned by the Extension.
- Specified by:
setExtensionBody
in interfaceExtensionBadResponseError
- Parameters:
extensionBody
- value to be set
-
setExtensionStatusCode
Description copied from interface:ExtensionBadResponseError
Http status code returned by the Extension.
- Specified by:
setExtensionStatusCode
in interfaceExtensionBadResponseError
- Parameters:
extensionStatusCode
- value to be set
-
setExtensionId
Description copied from interface:ExtensionBadResponseError
Unique identifier of the Extension.
- Specified by:
setExtensionId
in interfaceExtensionBadResponseError
- Parameters:
extensionId
- value to be set
-
setExtensionKey
Description copied from interface:ExtensionBadResponseError
User-defined unique identifier of the Extension.
- Specified by:
setExtensionKey
in interfaceExtensionBadResponseError
- Parameters:
extensionKey
- value to be set
-
equals
-
hashCode
-