Class IdempotenceException

All Implemented Interfaces:
Serializable

public class IdempotenceException extends ApiException
Represents an error response from the payment platform when an idempotent request failed because the first request has not finished yet.
See Also:
  • Constructor Details

    • IdempotenceException

      public IdempotenceException(String idempotenceKey, Long idempotenceRequestTimestamp, int statusCode, String responseBody, String errorId, List<APIError> errors)
    • IdempotenceException

      public IdempotenceException(String message, String idempotenceKey, Long idempotenceRequestTimestamp, int statusCode, String responseBody, String errorId, List<APIError> errors)
  • Method Details

    • getIdempotenceKey

      public String getIdempotenceKey()
      Returns:
      The key that was used for the idempotent request.
    • getIdempotenceRequestTimestamp

      public Long getIdempotenceRequestTimestamp()
      Returns:
      The request timestamp of the first idempotent request with the same key.