Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.sblim.cimclient.internal.http.HttpException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
HttpParseException
public class HttpException
extends java.io.IOException
Class HttpException represents HTTP related problems
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCtor.HttpException
(int status, java.lang.String reason) Ctor.HttpException
(int status, java.lang.String reason, java.lang.String cimError) Ctor.HttpException
(java.lang.String reason) Ctor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
HttpException
public HttpException()Ctor. Equivalent toHttpException(-1, null, null)
-
HttpException
public HttpException(java.lang.String reason) Ctor. Equivalent toHttpException(-1, reason, null)
- Parameters:
reason
- The reason
-
HttpException
public HttpException(int status, java.lang.String reason) Ctor. Equivalent toHttpException(-1, reason, null)
- Parameters:
status
- The statusreason
- The reason
-
HttpException
public HttpException(int status, java.lang.String reason, java.lang.String cimError) Ctor. Equivalent toHttpException(-1, reason, null)
- Parameters:
status
- The statusreason
- The reasoncimError
- The CIM error
-
-
Method Details
-
getStatus
public int getStatus()Returns the status- Returns:
- The status
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Throwable
-