public class GoCardlessApiException extends GoCardlessException
Base class for exceptions that are thrown as a result of error responses from the API.
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the HTTP status code.
|
java.lang.String |
getDocumentationUrl()
Returns the URL to the documentation describing the error.
|
java.lang.String |
getErrorMessage()
Returns a human-readable description of the error.
|
java.util.List<ApiError> |
getErrors()
Returns a list of errors.
|
java.lang.String |
getRequestId()
Returns the ID of the request.
|
ErrorType |
getType()
Returns the type of the error.
|
java.lang.String |
toString() |
public java.lang.String getErrorMessage()
Returns a human-readable description of the error.
public ErrorType getType()
Returns the type of the error.
public java.lang.String getDocumentationUrl()
Returns the URL to the documentation describing the error.
public java.lang.String getRequestId()
Returns the ID of the request. This can be used to help the support team find your error quickly.
public int getCode()
Returns the HTTP status code.
public java.util.List<ApiError> getErrors()
Returns a list of errors.
public java.lang.String toString()
toString
in class java.lang.Throwable