CakeTaskExtensions.

SetErrorHandler(CakeTask, Action<Exception, ICakeContext>) Method

Summary

Sets the task's error handler.
Namespace
Cake.Core
Containing Type
CakeTaskExtensions

Syntax

public static void SetErrorHandler(this CakeTask task, Action<Exception, ICakeContext> errorHandler)

Parameters

Name Type Description
task CakeTask The task.
errorHandler Action<Exception, ICakeContext> The error handler.

Return Value

Type Description
void