org.jcoderz.commons.connector.http.transport
Class HttpConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jcoderz.commons.connector.http.transport.HttpConnectionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpClientConnectionException, HttpConnectConnectionException, HttpEmptyResponseException, HttpInvalidResponseHeaderException, HttpServerConnectionException, HttpTimeoutConnectionException

public class HttpConnectionException
extends Exception

HttpConnectionException indicates a connection failure on HTTP level.

See Also:
Serialized Form

Constructor Summary
HttpConnectionException(String message, Throwable cause)
          Constructor.
HttpConnectionException(Throwable cause)
          Constructor.
 
Method Summary
 String getHttpMessage()
           
 int getStatusCode()
           
 String getStatusReason()
           
 
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

HttpConnectionException

public HttpConnectionException(Throwable cause)
Constructor.

Parameters:
cause - the root cause of problem

HttpConnectionException

public HttpConnectionException(String message,
                               Throwable cause)
Constructor.

Parameters:
message - describing the HTTP error
cause - the root cause of problem
Method Detail

getHttpMessage

public String getHttpMessage()
Returns:
Returns the message.

getStatusCode

public int getStatusCode()
Returns:
Returns the statusCode.

getStatusReason

public String getStatusReason()
Returns:
Returns the statusReason.


Copyright 2007 The jCoderZ Project.