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

    Constructors
    Constructor
    Description
    Ctor.
    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

    Modifier and Type
    Method
    Description
    int
    Returns the status
    java.lang.String
     

    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 to HttpException(-1, null, null)
    • HttpException

      public HttpException(java.lang.String reason)
      Ctor. Equivalent to HttpException(-1, reason, null)
      Parameters:
      reason - The reason
    • HttpException

      public HttpException(int status, java.lang.String reason)
      Ctor. Equivalent to HttpException(-1, reason, null)
      Parameters:
      status - The status
      reason - The reason
    • HttpException

      public HttpException(int status, java.lang.String reason, java.lang.String cimError)
      Ctor. Equivalent to HttpException(-1, reason, null)
      Parameters:
      status - The status
      reason - The reason
      cimError - The CIM error
  • Method Details

    • getStatus

      public int getStatus()
      Returns the status
      Returns:
      The status
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Throwable