application/src/main/java/com/buschmais/jqassistant/commandline/Main.java
private static String getErrorMessage(CliExecutionException e) {
        StringBuffer messageBuilder = new StringBuffer();
        Throwable current = e;
        do {
            messageBuilder.append("-> ");
            messageBuilder.append(current.getMessage());
            current = current.getCause();
        }
        while (current != null);
        return messageBuilder.toString();
    }
private static String getErrorMessage(CliExecutionException e) {
        StringBuffer messageBuilder = new StringBuffer();
        Throwable current = e;
        do {
            messageBuilder.append("-> ");
            messageBuilder.append(current.getMessage());
            current = current.getCause();
        }
        while (current != null);
        return messageBuilder.toString();
    }
private static String getErrorMessage ( CliExecutionException e ) { StringBuffer messageBuilder = new StringBuffer ( ) ; Throwable current = e ; do { messageBuilder . append ( "-> " ) ; messageBuilder . append ( current . getMessage ( ) ) ; current = current . getCause ( ) ; } while ( current != null ) ; return messageBuilder . toString ( ) ; }
Extract an error message from the given exception and its causes.

@param e
The exception.
@return The error message.
Extract an error message from the given exception and its causes .