Community
Participate
Working Groups
I set task.setErrorHandlingOption(IEngineTask.CANCEL_ON_ERROR). It does not cancel the task, the report is still written to the outputstream, followed by the errors. I would expect that it cancels and throws an EngineException, so that my application can handle it. Maybe it does not have to throw the exception so that I can them from task.getErrors(), but it should definitely cancel.
Update: Seems to work for non html Outputs
In 2.6.1, if this flag is set, the tasks ARE canceled when error occurs, and the exception can be gotten from task.getErrors().
Verified in 2.6.1.v20100812-0630 that tasks will be canceled with the flag set. Contents after where the exception happens will not be output to the html file, but error message and contents before will be output the the html.