Package com.adyen.service.exception
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adyen.service.exception.ApiException
-
- All Implemented Interfaces:
Serializable
public class ApiException extends Exception
API Exception class- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException(String message, int statusCode)ApiException(String message, int statusCode, Map<String,List<String>> responseHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiErrorgetError()StringgetResponseBody()Map<String,List<String>>getResponseHeaders()intgetStatusCode()voidsetError(ApiError error)voidsetResponseBody(String responseBody)voidsetStatusCode(int statusCode)StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getError
public ApiError getError()
-
setError
public void setError(ApiError error)
-
getStatusCode
public int getStatusCode()
-
setStatusCode
public void setStatusCode(int statusCode)
-
getResponseBody
public String getResponseBody()
-
setResponseBody
public void setResponseBody(String responseBody)
-
-