Class HttpErrorResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.targetr.wtm3.net.http.response.HttpErrorResponseException
- All Implemented Interfaces:
Serializable
Exception for quickly sending an HttpResponse (usually an error) to a client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpErrorResponseException(HttpResponse response) Constructs a new HttpErrorResponseException with the specified HTTP response. -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP response associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpErrorResponseException
Constructs a new HttpErrorResponseException with the specified HTTP response.- Parameters:
response- the HTTP response
-
-
Method Details
-
getHttpResponse
Gets the HTTP response associated with this exception.- Returns:
- the HTTP response
-