public static RuntimeException failure(Throwable t) {
        if (t instanceof RuntimeException)
            return (RuntimeException)t;
        if (t instanceof Error)
            throw (Error)t;
        return t instanceof InterruptedException
             ? new AbortedException(t)
             : new AmazonClientException(t);
    }
Used to help perform common throw-up with minimal wrapping.
aws-java-sdk-core/src/main/java/com/amazonaws/util/Throwables.java