public ExecuteException getException()

in src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java [54:59]


    public ExecuteException getException() {
        if (!hasResult) {
            throw new IllegalStateException("The process has not exited yet therefore no result is available ...");
        }
        return exception;
    }