Summary
Adds an error reporter for the task to be executed when an exception is thrown from the task.
This action is invoked before the error handler, but gives no opportunity to recover from the error.
Syntax
public static CakeTaskBuilder ReportError(this CakeTaskBuilder builder, Action<Exception> errorReporter)
Examples
Task("Risky")
.ReportError(ex => Error(ex.Message))
.Does(() => { });
Parameters
| Name |
Type |
Description |
| builder |
CakeTaskBuilder |
The builder. |
| errorReporter |
Action<Exception> |
The finally handler. |
Return Value