41 lines
858 B
Java
41 lines
858 B
Java
package org.mariotaku.simplerestapi;
|
|
|
|
import org.mariotaku.simplerestapi.http.RestHttpResponse;
|
|
|
|
/**
|
|
* Created by mariotaku on 15/2/7.
|
|
*/
|
|
public class RestException extends RuntimeException {
|
|
public RestException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
|
|
public RestException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public RestException() {
|
|
}
|
|
|
|
public RestException(Throwable cause) {
|
|
super(cause);
|
|
}
|
|
|
|
private RestHttpResponse response;
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "RestException{" +
|
|
"response=" + response +
|
|
"} " + super.toString();
|
|
}
|
|
|
|
public RestHttpResponse getResponse() {
|
|
return response;
|
|
}
|
|
|
|
public void setResponse(RestHttpResponse response) {
|
|
this.response = response;
|
|
}
|
|
}
|