Package com.onlinepayments.communication
Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.onlinepayments.communication.ResponseException
- All Implemented Interfaces:
Serializable
Thrown when a response was received from the Online Payments platform which indicates an error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseException(int statusCode, String body, List<ResponseHeader> headers) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ResponseException
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Returns:
- The HTTP status code that was returned by the Online Payments platform.
-
getBody
- Returns:
- The raw response body that was returned by the Online Payments platform.
-
getHeaders
- Returns:
- The headers that were returned by the Online Payments platform. Never
null.
-
getHeader
- Returns:
- The header with the given name, or
nullif there was no such header.
-
getHeaderValue
- Returns:
- The value of the header with the given name, or
nullif there was no such header.
-
toString
-