com.messagebird.exceptions.GeneralException 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;
/**
* General exceptions send by the system. It might or might not contain a list of error codes
*
* Created by rvt on 1/5/15.
*/
public class GeneralException extends MessageBirdException {
private Integer responseCode=null;
public GeneralException(List errors) {
super(errors);
}
public GeneralException(String s, List errors) {
super(s, errors);
}
public GeneralException(String s) {
super(s, null);
}
public GeneralException(String s, Throwable throwable, List errors) {
super(s, throwable, errors);
}
public GeneralException(Throwable throwable, List errors) {
super(throwable, errors);
}
public GeneralException(Throwable throwable) {
super(throwable, null);
}
public GeneralException(String s, Integer responseCode) {
this(s);
this.responseCode = responseCode;
}
public GeneralException(String s, int responseCode, List errorReport) {
super(s, errorReport);
this.responseCode = responseCode;
}
public Integer getResponseCode() {
return responseCode;
}
}