com.atlassian.httpclient.api
Class UnexpectedResponseException

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

public class UnexpectedResponseException
extends java.lang.RuntimeException

Thrown to indicate that a response completed normally but that produced an unexpected status code.

See Also:
Serialized Form

Constructor Summary
UnexpectedResponseException(Response response)
          Creates a new exception for the given response.
 
Method Summary
 Response getResponse()
          Returns the unexpected response
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedResponseException

public UnexpectedResponseException(Response response)
Creates a new exception for the given response.

Parameters:
response - The unexpected response
Method Detail

getResponse

public Response getResponse()
Returns the unexpected response

Returns:
The response

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2012 Atlassian. All Rights Reserved.