class GenericErrorsOutputHandler implements MavenInvocationOutputHandler<GenericErrorsOutputHandler, String> {

    @Override
    public String getResult() {
        if (!executionStarted) {
            throw new IllegalStateException("Execution has not started. No results to return.");
        } else {
            return message;
        }
    }

}