class Runnables {

    public static void runAll( String message, Runnable... runnables )
    {
        Throwable exceptions = null;
        for ( Runnable runnable : runnables )
        {
            try
            {
                runnable.run();
            }
            catch ( Throwable t )
            {
                exceptions = Exceptions.chain( exceptions, t );
            }
        }
        if ( exceptions != null )
        {
            throw new RuntimeException( message, exceptions );
        }
    }

}