Class ServiceException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int ERROR_CODE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHttpErrorCode()  
      java.lang.String getMessage()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServiceException

        public ServiceException​(java.lang.String message)
        Parameters:
        message - message
      • ServiceException

        public ServiceException​(java.lang.String message,
                                java.lang.Throwable cause)
        Parameters:
        message - message
        cause - cause
      • ServiceException

        public ServiceException​(java.lang.Throwable cause)
        Parameters:
        cause - cause
      • ServiceException

        public ServiceException​(HttpConnection connection)
        Exception is filled in with some detailed information from response.
        Parameters:
        connection - connection
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getHttpErrorCode

        public int getHttpErrorCode()
        Returns:
        http error code