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

com.sigopt.exception.APIException Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package com.sigopt.exception;

import com.sigopt.net.APIMethod;

public class APIException extends SigoptException {
    APIMethod apiMethod;

    public APIException(String message, APIMethod apiMethod) {
        super(message);
        this.apiMethod = apiMethod;
    }

    public APIMethod getApiMethod() {
        return apiMethod;
    }

    public String getBody() {
        return apiMethod.response.body;
    }

    public Integer getCode() {
        return apiMethod.response.code;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy