com.messagebird.exceptions.MessageBirdException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messagebird-api Show documentation
Show all versions of messagebird-api Show documentation
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;
}
}