com.testdroid.api.APIException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
package com.testdroid.api;
/**
* @author Łukasz Kajda
*/
public class APIException extends Exception {
private final Integer status;
public APIException() {
super();
this.status = null;
}
public APIException(String message) {
this(null, message);
}
public APIException(Integer status, String message) {
super(message);
this.status = status;
}
public APIException(Throwable t) {
super(t);
this.status = null;
}
public APIException(String message, Throwable t) {
this(null, message, t);
}
public APIException(Integer status, String message, Throwable t) {
super(message, t);
this.status = status;
}
/**
* HTTP status returned from API call or null if call hasn't been executed
* yet.
*/
public Integer getStatus() {
return status;
}
}