|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.univocity.api.exception.DataInputException
com.univocity.api.net.HttpException
public final class HttpException
A HttpException is thrown when a HTTP request made using a HttpRequest object did not result
resulted a 2xx (i.e. 'OK') or 3xx (i.e. 'Redirect') HTTP response code
| Constructor Summary | |
|---|---|
HttpException(String message,
int statusCode,
String statusMessage,
HttpRequest request)
Creates a new HTTP status exception |
|
| Method Summary | |
|---|---|
String |
getMessage()
|
HttpRequest |
getRequest()
Returns the HttpRequest used to attempt to obtain a response from the remote server |
int |
getStatusCode()
Returns the HTTP status code returned by the remote server. |
String |
getStatusMessage()
Returns the HTTP status message returned by the remote server, if available. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpException(String message,
int statusCode,
String statusMessage,
HttpRequest request)
message - message with information about the error.statusCode - the HTTP status code returned by the remote serverstatusMessage - the HTTP status message, describing the error code, if available.request - the HttpRequest object used to attempt to obtain a response from the remote server| Method Detail |
|---|
public final String getStatusMessage()
public final int getStatusCode()
public final HttpRequest getRequest()
HttpRequest used to attempt to obtain a response from the remote server
HttpRequest that failed.public String getMessage()
getMessage in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||