com.atlassian.httpclient.api
Class UnexpectedResponsesException

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

public class UnexpectedResponsesException
extends java.lang.RuntimeException

Thrown to indicate that a set of responses completed normally but that one or more of them produced an unexpected status code.

See Also:
Serialized Form

Constructor Summary
UnexpectedResponsesException(java.util.List<Response> responses)
          Creates a new exception for the given responses.
 
Method Summary
 java.util.List<Response> getResponses()
          Returns the unexpected responses.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedResponsesException

public UnexpectedResponsesException(java.util.List<Response> responses)
Creates a new exception for the given responses.

Parameters:
responses - The list of responses
Method Detail

getResponses

public java.util.List<Response> getResponses()
Returns the unexpected responses.

Returns:
The responses


Copyright © 2012 Atlassian. All Rights Reserved.