Class UnexpectedResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.httpclient.api.UnexpectedResponseException
All Implemented Interfaces:
Serializable

public class UnexpectedResponseException extends RuntimeException
Thrown to indicate that a response completed normally but that produced an unexpected status code.
See Also:
  • Constructor Details

    • UnexpectedResponseException

      public UnexpectedResponseException(Response response)
      Creates a new exception for the given response.
      Parameters:
      response - The unexpected response
  • Method Details

    • getResponse

      public Response getResponse()
      Returns the unexpected response
      Returns:
      The response
    • toString

      public String toString()
      Overrides:
      toString in class Throwable