Package com.onlinepayments
Class ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.onlinepayments.ApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationException,DeclinedTransactionException,IdempotenceException,PlatformException,ReferenceException,ValidationException
Represents an error response from the payment platform which contains an ID and a list of errors.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ApiException
-
ApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Returns:
- The HTTP status code that was returned by the Payment platform.
-
getResponseBody
- Returns:
- The raw response body that was returned by the Payment platform.
-
getErrorId
- Returns:
- The
errorIdreceived from the Payment platform if available.
-
getErrors
- Returns:
- The
errorsreceived from the Payment platform if available. Nevernull.
-
toString
-