All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yoti.api.client.spi.remote.call.ResourceException Maven / Gradle / Ivy

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