public ExecuteException getException()

in src/main/java/org/apache/commons/exec/DefaultExecuteResultHandler.java [72:79]


    public ExecuteException getException() {

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

        return exception;
    }