Share via


KernelFunctionCanceledException Constructor

Definition

Initializes the exception instance.

public KernelFunctionCanceledException (Microsoft.SemanticKernel.Kernel kernel, Microsoft.SemanticKernel.KernelFunction function, Microsoft.SemanticKernel.KernelArguments arguments, Microsoft.SemanticKernel.FunctionResult? functionResult, Exception? innerException = default);
new Microsoft.SemanticKernel.KernelFunctionCanceledException : Microsoft.SemanticKernel.Kernel * Microsoft.SemanticKernel.KernelFunction * Microsoft.SemanticKernel.KernelArguments * Microsoft.SemanticKernel.FunctionResult * Exception -> Microsoft.SemanticKernel.KernelFunctionCanceledException
Public Sub New (kernel As Kernel, function As KernelFunction, arguments As KernelArguments, functionResult As FunctionResult, Optional innerException As Exception = Nothing)

Parameters

kernel
Kernel

The Kernel passed to the invocation of function.

function
KernelFunction

The KernelFunction whose invocation was canceled.

arguments
KernelArguments

The arguments collection supplied to the invocation of function.

functionResult
FunctionResult

The result of the KernelFunction invocation, potentially modified by the event handler, if cancellation was requested after the function's successful completion.

innerException
Exception

The exception that is the cause of the current exception.

Applies to