Class HttpException

  • All Implemented Interfaces:
    Serializable

    public class HttpException
    extends 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 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