public static String getExceptionMessage(List throwables)
    {
        if (throwables == null)
        {
            return null;
        }

        for (int i = throwables.size()-1; i>0; i--)
        {
            Throwable t = (Throwable) throwables.get(i);
            if (t.getMessage() != null)
            {
                return t.getMessage();
            }
        }
        
        return null;
    }
public static String getExceptionMessage ( List throwables ) { if ( throwables == null ) { return null ; } for ( int i = throwables . size ( ) - 1 ; i > 0 ; i -- ) { Throwable t = ( Throwable ) throwables . get ( i ) ; if ( t . getMessage ( ) != null ) { return t . getMessage ( ) ; } } return null ; }
Find a throwable message starting with the last element.<br />
Returns the first throwable message where <code>throwable.getMessage() != null</code>