Summary
Sets the task's error handler.
- Namespace
- Cake
.Core - Containing Type
- CakeTaskExtensions
Syntax
public static void SetErrorHandler(this CakeTask task, Func<Exception, ICakeContext, Task> errorHandler)
Parameters
Name | Type | Description |
---|---|---|
task | CakeTask | The task. |
errorHandler | Func |
The error handler. |
Return Value
Type | Description |
---|---|
void |