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

one.credify.sdk.utils.ErrorUtils Maven / Gradle / Ivy

package one.credify.sdk.utils;

import okhttp3.ResponseBody;
import one.credify.sdk.dto.CredifyApiErrorResponseV1;

import java.io.IOException;

public class ErrorUtils {
    public static CredifyApiErrorResponseV1 parseErrorV1(ResponseBody responseBody) throws IOException {
        if (responseBody == null) {
            return null;
        }
        return Constants.MAPPER.readValue(responseBody.string(), CredifyApiErrorResponseV1.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy