CakeTaskExtensions.

SetErrorHandler(CakeTask, Func<Exception, ICakeContext, Task>) Method

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<Exception, ICakeContext, Task> The error handler.

Return Value

Type Description
void