Class BaseServiceException.Error (2.3.5)

public static final class BaseServiceException.Error implements Serializable

Inheritance

Object > BaseServiceException.Error

Implements

Serializable

Constructors

Error(Integer code, String reason)

public Error(Integer code, String reason)
Parameters
NameDescription
codeInteger
reasonString

Error(Integer code, String reason, boolean rejected)

public Error(Integer code, String reason, boolean rejected)
Parameters
NameDescription
codeInteger
reasonString
rejectedboolean

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCode()

public Integer getCode()

Returns the code associated with this exception.

Returns
TypeDescription
Integer

getReason()

public String getReason()

Returns the reason that caused the exception.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isRejected()

public boolean isRejected()

Returns true if the error indicates that the API call was certainly not accepted by the server. For instance, if the server returns a rate limit exceeded error, it certainly did not process the request and this method will return true.

Returns
TypeDescription
boolean

isRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors)

public boolean isRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors)
Parameters
NameDescription
idempotentboolean
retryableErrorsSet<Error>
Returns
TypeDescription
boolean

toString()

public String toString()
Returns
TypeDescription
String
Overrides