java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.iu.client.HttpException
- All Implemented Interfaces:
Serializable
Thrown by
IuHttp
when an error response is received from an HTTP
request.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpException
(String message) Pre-response constructor.HttpException
(String message, Throwable cause) Pre-response constructor.HttpException
(HttpResponse<InputStream> response, String message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP response that failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
Pre-response constructor.- Parameters:
message
- message
-
HttpException
Pre-response constructor.- Parameters:
message
- messagecause
- cause
-
HttpException
HttpException(HttpResponse<InputStream> response, String message) Constructor.- Parameters:
response
- error response, status code >= 400message
- detailed error message
-
-
Method Details
-
getResponse
Gets the HTTP response that failed.- Returns:
HttpResponse
-