library/src/main/java/com/kdgregory/aws/utils/s3/MultipartUpload.java
/**
     *  Common code for unwrapping an upload Future, throwing any exception as
     *  a RuntimeException.
     */
Common code for unwrapping an upload Future, throwing any exception as
a RuntimeException.
Common code for unwrapping an upload Future throwing any exception as a RuntimeException .
private PartETag unwrap(Future<PartETag> future)
    {
        try
        {
            return future.get();
        }
        catch (ExecutionException e)
        {
            throw new RuntimeException(String.format("failed to complete upload task for s3://%s/%s"), e.getCause());
        }
        catch (Exception e)
        {
            throw new RuntimeException(String.format("failed to complete upload task for s3://%s/%s"), e);
        }
    }
private PartETag unwrap ( Future < PartETag > future ) { try { return future . get ( ) ; } catch ( ExecutionException e ) { throw new RuntimeException ( String . format ( "failed to complete upload task for s3://%s/%s" ) , e . getCause ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( String . format ( "failed to complete upload task for s3://%s/%s" ) , e ) ; } }
Common code for unwrapping an upload Future, throwing any exception as
  a RuntimeException.
Common code for unwrapping an upload Future throwing any exception as a RuntimeException .