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

com.pryv.exceptions.ApiException Maven / Gradle / Ivy

The newest version!
package com.pryv.exceptions;

import java.util.ArrayList;

/**
 * Model an Exception originated from Pryv API
 */
public class ApiException extends PryvException {

    private String id;
    private String message;
    private String data;
    private ArrayList subErrors;

    public ApiException (String id, String msg, String data, ArrayList sub) {
        this.id = id;
        this.message = msg;
        this.data = data;
        this.subErrors = sub;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getMsg() {
        return message;
    }

    public String getData() {
        return data;
    }

    public ArrayList getSubErrors() {
        return subErrors;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy