com.sap.ip.me.api.services
Class HttpConnectionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.ip.me.api.services.MEException
              extended bycom.sap.ip.me.api.services.HttpConnectionException
All Implemented Interfaces:
java.io.Serializable

public class HttpConnectionException
extends MEException

This Exception will be thrown if any error occurs while trying to establish a http connection.

Author:
SAP
See Also:
Serialized Form

Constructor Summary
HttpConnectionException(java.lang.String reason)
          Constructor for HttpConnectionException.
HttpConnectionException(java.lang.String reason, int httpResponseCode)
          Constructor for HttpConnectionException.
HttpConnectionException(java.lang.String reason, int httpResponseCode, java.lang.Throwable nestedException)
          Constructor for HttpConnectionException.
HttpConnectionException(java.lang.String reason, java.lang.Throwable nestedException)
          Constructor for HttpConnectionException.
 
Method Summary
 int getHttpResponseCode()
          Get http response code.
 
Methods inherited from class com.sap.ip.me.api.services.MEException
getNestedException, getReason, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpConnectionException

public HttpConnectionException(java.lang.String reason)
Constructor for HttpConnectionException.

Parameters:
reason - The reason why this exception is thrown.

HttpConnectionException

public HttpConnectionException(java.lang.String reason,
                               java.lang.Throwable nestedException)
Constructor for HttpConnectionException.

Parameters:
reason - The reason why this exception is thrown.
nestedException - Possibly a nested exception.

HttpConnectionException

public HttpConnectionException(java.lang.String reason,
                               int httpResponseCode)
Constructor for HttpConnectionException.

Parameters:
reason - The reason why this exception is thrown.

HttpConnectionException

public HttpConnectionException(java.lang.String reason,
                               int httpResponseCode,
                               java.lang.Throwable nestedException)
Constructor for HttpConnectionException.

Parameters:
reason - The reason why this exception is thrown.
nestedException - Possibly a nested exception.
Method Detail

getHttpResponseCode

public int getHttpResponseCode()
Get http response code.

Returns:
http response code. Return -1 if no response code is set.


Copyright © 2005 SAP AG. All Rights Reserved.