org.jets3t.service.impl.rest
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jets3t.service.impl.rest.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.lang.Exception

Simple exception to capture details of a failed HTTP operation, including the response code and message.

Author:
James Murty
See Also:
Serialized Form

Constructor Summary
HttpException(int responseCode, java.lang.String responseMessage)
           
 
Method Summary
 int getResponseCode()
           
 java.lang.String getResponseMessage()
           
 
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

HttpException

public HttpException(int responseCode,
                     java.lang.String responseMessage)
Method Detail

getResponseCode

public int getResponseCode()

getResponseMessage

public java.lang.String getResponseMessage()