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

com.myperfit.sdk.transactional.exceptions.ValidationErrorRequestException Maven / Gradle / Ivy

There is a newer version: 1.1.8
Show newest version
package com.myperfit.sdk.transactional.exceptions;

import org.json.simple.JSONObject;

import java.util.Map;

public class ValidationErrorRequestException extends RequestFailedException {


    public ValidationErrorRequestException(String responseApi) {
        super(responseApi);
    }

    public ValidationErrorRequestException(String s, String responseApi) {
        super(s, responseApi);
    }

    public ValidationErrorRequestException(String s, Throwable throwable, String responseApi) {
        super(s, throwable, responseApi);
    }

    public ValidationErrorRequestException(Throwable throwable, String responseApi) {
        super(throwable, responseApi);
    }

    public ValidationErrorRequestException(String s, Throwable throwable, boolean b, boolean b1, String responseApi) {
        super(s, throwable, b, b1, responseApi);
    }

    public Map getValidationsError() {
        return (Map) ((JSONObject) getResponseApiAsJsonObject().get("error")).get("errors");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy