Class BadGatewayErrorImpl
java.lang.Object
com.commercetools.api.models.error.BadGatewayErrorImpl
- All Implemented Interfaces:
BadGatewayError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class BadGatewayErrorImpl
extends Object
implements BadGatewayError, io.vrap.rmf.base.client.ModelBase
Returned when a server-side problem is caused by scaling infrastructure resources.
The client application should retry the request with exponential backoff up to a point where further delay is unacceptable.
-
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.BadGatewayError
BAD_GATEWAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Plain text description of the error.int
hashCode()
void
setMessage
(String message) Plain text description of the error.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.BadGatewayError
withBadGatewayError
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
BadGatewayErrorImpl
public BadGatewayErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceBadGatewayError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessage
in interfaceBadGatewayError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
setMessage
Description copied from interface:BadGatewayError
Plain text description of the error.
- Specified by:
setMessage
in interfaceBadGatewayError
- Specified by:
setMessage
in interfaceErrorObject
- 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
-
equals
-
hashCode
-