com.yoti.api.client.spi.remote.call.ResourceException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoti-sdk-api Show documentation
Show all versions of yoti-sdk-api Show documentation
Java SDK for simple integration with the Yoti platform
The newest version!
package com.yoti.api.client.spi.remote.call;
public class ResourceException extends Exception {
private final int responseCode;
private final String responseBody;
public ResourceException(int responseCode, String responseMessage, String responseBody) {
super(responseMessage);
this.responseCode = responseCode;
this.responseBody = responseBody;
}
public String getResponseBody() {
return responseBody;
}
public int getResponseCode() {
return responseCode;
}
@Override
public String toString() {
return String.format("%s, code: %s, body: %s", super.toString(), responseCode, responseBody);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy