Package com.adyen.httpclient
Class HTTPClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adyen.httpclient.HTTPClientException
-
- All Implemented Interfaces:
Serializable
public class HTTPClientException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTTPClientException()HTTPClientException(int code, String message)HTTPClientException(int code, String message, Map<String,List<String>> responseHeaders, String responseBody)HTTPClientException(int code, Map<String,List<String>> responseHeaders, String responseBody)HTTPClientException(String message)HTTPClientException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)HTTPClientException(String message, Throwable cause)HTTPClientException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)HTTPClientException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)HTTPClientException(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the HTTP status code.StringgetResponseBody()Get the HTTP response body.Map<String,List<String>>getResponseHeaders()Get the HTTP response headers.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HTTPClientException
public HTTPClientException()
-
HTTPClientException
public HTTPClientException(Throwable throwable)
-
HTTPClientException
public HTTPClientException(String message)
-
HTTPClientException
public HTTPClientException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
-
HTTPClientException
public HTTPClientException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
-
HTTPClientException
public HTTPClientException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
-
HTTPClientException
public HTTPClientException(int code, Map<String,List<String>> responseHeaders, String responseBody)
-
HTTPClientException
public HTTPClientException(int code, String message)
-
-
Method Detail
-
getCode
public int getCode()
Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
public Map<String,List<String>> getResponseHeaders()
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
public String getResponseBody()
Get the HTTP response body.- Returns:
- Response body in the form of string
-
-