Class 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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpException()
      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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatus()
      Returns the status
      java.lang.String toString()  
      • 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 Detail

      • 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 Detail

      • getStatus

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

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