Package com.onlinepayments
Class IdempotenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.onlinepayments.ApiException
com.onlinepayments.IdempotenceException
- All Implemented Interfaces:
Serializable
Represents an error response from the payment platform when an idempotent request failed because the first request has not finished yet.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdempotenceException(String idempotenceKey, Long idempotenceRequestTimestamp, int statusCode, String responseBody, String errorId, List<APIError> errors) IdempotenceException(String message, String idempotenceKey, Long idempotenceRequestTimestamp, int statusCode, String responseBody, String errorId, List<APIError> errors) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.onlinepayments.ApiException
getErrorId, getErrors, getResponseBody, getStatusCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
IdempotenceException
-
IdempotenceException
-
-
Method Details
-
getIdempotenceKey
- Returns:
- The key that was used for the idempotent request.
-
getIdempotenceRequestTimestamp
- Returns:
- The request timestamp of the first idempotent request with the same key.
-