bundles/org.eclipse.packagedrone.utils/src/org/eclipse/packagedrone/utils/Exceptions.java
public static <T> T wrapException ( final Callable<T> callable )
    {
        try
        {
            return callable.call ();
        }
        catch ( final RuntimeException e )
        {
            throw e;
        }
        catch ( final Exception e )
        {
            throw new RuntimeException ( e );
        }
    }
public static <T> T wrapException ( final Callable<T> callable )
    {
        try
        {
            return callable.call ();
        }
        catch ( final RuntimeException e )
        {
            throw e;
        }
        catch ( final Exception e )
        {
            throw new RuntimeException ( e );
        }
    }
public static < T > T wrapException ( final Callable < T > callable ) { try { return callable . call ( ) ; } catch ( final RuntimeException e ) { throw e ; } catch ( final Exception e ) { throw new RuntimeException ( e ) ; } }
Call and wrap {@link Exception}s into a {@link RuntimeException}

@param callable
the {@link Callable} to call
@param <T>
argument type
@return the return value of the callable
Call and wrap { @link Exception } s into a { @link RuntimeException }