Class HttpException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpException
    extends java.lang.RuntimeException
    This exception will be thrown by any exceptional cases encountered within the JNI bindings to the AWS Common Runtime
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpException​(int errorCode)
      Constructs a new HttpException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Returns the error code captured when the exception occurred.
      • Methods inherited from class java.lang.Throwable

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

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

      • HttpException

        public HttpException​(int errorCode)
        Constructs a new HttpException
        Parameters:
        errorCode - native error code representing the error source/reason
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the error code captured when the exception occurred. This can be fed to CRT.awsErrorString() to get a user-friendly error string
        Returns:
        The error code associated with this exception