com.atlassian.httpclient.api
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:
- Serialized Form
UnexpectedResponseException
public UnexpectedResponseException(Response response)
- Creates a new exception for the given response.
- Parameters:
response - The unexpected response
getResponse
public Response getResponse()
- Returns the unexpected response
- Returns:
- The response
toString
public String toString()
- Overrides:
toString in class Throwable
Copyright © 2012–2015 Atlassian. All rights reserved.