public Exception getException() {
        return exception;
    }
@return the exception that was generated while processing the request, or null if the attempt succeeded
aws-java-sdk-core/src/main/java/com/amazonaws/handlers/HandlerAfterAttemptContext.java