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

public class HttpErrorResponseException extends IOException
Exception for quickly sending an HttpResponse (usually an error) to a client.
See Also:
  • Constructor Details

    • HttpErrorResponseException

      public HttpErrorResponseException(HttpResponse response)
      Constructs a new HttpErrorResponseException with the specified HTTP response.
      Parameters:
      response - the HTTP response
  • Method Details

    • getHttpResponse

      public HttpResponse getHttpResponse()
      Gets the HTTP response associated with this exception.
      Returns:
      the HTTP response