org.sblim.cimclient.internal.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.sblim.cimclient.internal.http.HttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpParseException

public class HttpException
extends IOException

Class HttpException represents HTTP related problems

See Also:
Serialized Form

Constructor Summary
HttpException()
          Ctor.
HttpException(int status, String reason)
          Ctor.
HttpException(int status, String reason, String cimError)
          Ctor.
HttpException(String reason)
          Ctor.
 
Method Summary
 int getStatus()
          Returns the status
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpException

public HttpException()
Ctor. Equivalent to HttpException(-1, null, null)


HttpException

public HttpException(String reason)
Ctor. Equivalent to HttpException(-1, reason, null)

Parameters:
reason - The reason

HttpException

public HttpException(int status,
                     String reason)
Ctor. Equivalent to HttpException(-1, reason, null)

Parameters:
status - The status
reason - The reason

HttpException

public HttpException(int status,
                     String reason,
                     String cimError)
Ctor. Equivalent to HttpException(-1, reason, null)

Parameters:
status - The status
reason - The reason
cimError - The CIM error
Method Detail

getStatus

public int getStatus()
Returns the status

Returns:
The status

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.