
io.femo.http.HttpException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http Show documentation
Show all versions of http Show documentation
An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request.
On android only asynchronous driver is supported.
package io.femo.http;
import java.io.PrintStream;
/**
* Created by felix on 1/19/16.
*/
public class HttpException extends RuntimeException {
private HttpRequest request;
public HttpException(HttpRequest request, Exception cause) {
super(cause);
}
@Override
public void printStackTrace(PrintStream printStream) {
if(request != null)
request.print(printStream);
super.printStackTrace(printStream);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy