com.gocardless.errors.MalformedResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gocardless-pro Show documentation
Show all versions of gocardless-pro Show documentation
Client library for accessing the GoCardless Pro API
package com.gocardless.errors;
import com.gocardless.GoCardlessException;
/**
* Exception thrown when a response is returned from the API which isn't valid JSON (for example, an
* HTML error page returned from a load balancer)
*/
public class MalformedResponseException extends GoCardlessException {
private final String responseBody;
public MalformedResponseException(String responseBody) {
super("Malformed response received from server");
this.responseBody = responseBody;
}
public String getResponseBody() {
return responseBody;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy