org.jboss.jbossts.star.provider
Class HttpResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.jboss.jbossts.star.provider.HttpResponseException
All Implemented Interfaces:
Serializable

public class HttpResponseException
extends Error

Exception for wrapping unexpected http response codes

See Also:
Serialized Form

Constructor Summary
HttpResponseException(int expectedResponse, int actualResponse)
           
HttpResponseException(Throwable cause, String body, int[] expectedResponses, int actualResponse)
           
HttpResponseException(Throwable cause, String body, int expectedResponse, int actualResponse)
           
 
Method Summary
 int getActualResponse()
           
 String getBody()
           
 int getExpectedResponse()
           
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

HttpResponseException

public HttpResponseException(Throwable cause,
                             String body,
                             int expectedResponse,
                             int actualResponse)

HttpResponseException

public HttpResponseException(Throwable cause,
                             String body,
                             int[] expectedResponses,
                             int actualResponse)

HttpResponseException

public HttpResponseException(int expectedResponse,
                             int actualResponse)
Method Detail

getExpectedResponse

public int getExpectedResponse()

getActualResponse

public int getActualResponse()

getBody

public String getBody()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2012. All Rights Reserved.