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

com.messagebird.exceptions.MessageBirdException Maven / Gradle / Ivy

Go to download

The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.

The newest version!
package com.messagebird.exceptions;

import com.messagebird.objects.ErrorReport;

import java.util.List;

/**
 * Base class for MessageBird exceptions that can contain Error codes from the REST service
 *
 * Created by rvt on 1/6/15.
 */
public class MessageBirdException extends Exception {
    private List errors;

    public MessageBirdException(List errors) {
        this.errors = errors;
    }

    public MessageBirdException(String s, List errors) {
        super(s);
        this.errors = errors;
    }

    public MessageBirdException(String s, Throwable throwable, List errors) {
        super(s, throwable);
        this.errors = errors;
    }

    public MessageBirdException(Throwable throwable, List errors) {
        super(throwable);
        this.errors = errors;
    }

    public List getErrors() {
        return errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy