Skip to content
Tracon

TraconWorkflowFunctionTimeoutException

Namespace Tracon · Assembly Tracon.Abstractions.dll

Thrown when a function node of a workflow does not return within its timeout.

public sealed class TraconWorkflowFunctionTimeoutException : TraconException, ISerializable
Inheritance
object ← Exception ← TraconException ← TraconWorkflowFunctionTimeoutException
Implements
ISerializable
Inherited Members
TraconException.ErrorType, Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The timeout is the node’s own (WorkflowNodeReference.Timeout), or the one its function was registered with. When it elapses, the token the function’s handler was given is cancelled and the run stops waiting: the exception fails the node, so the workflow run ends Failed and no later node runs.

A cancellation of the run itself is not this exception: a run that its caller cancels, or that reaches its own deadline (Tracon:Workflows:RunTimeout), ends Canceled while the node is still running, whatever the node’s timeout is.

Creates a new error.

public TraconWorkflowFunctionTimeoutException()

TraconWorkflowFunctionTimeoutException(string)

Section titled “ TraconWorkflowFunctionTimeoutException(string)”

Creates a new error.

public TraconWorkflowFunctionTimeoutException(string message)

message string

The error message.

TraconWorkflowFunctionTimeoutException(string, Exception)

Section titled “ TraconWorkflowFunctionTimeoutException(string, Exception)”

Creates a new error.

public TraconWorkflowFunctionTimeoutException(string message, Exception innerException)

message string

The error message.

innerException Exception

The underlying error.

The stable value written to TraconException.ErrorType.

public const string WorkflowFunctionTimeoutErrorType = "workflow_function_timeout"

string

Gets the stable error type name written to the run record.

public override string ErrorType { get; }

string

Defaults to the full name of the exception type, so today’s behaviour does not change. A derived type overrides this member when the record has to be machine readable — for example TraconContentFilteredException writes content_filtered. Reports and alert rules can rely on this stable name instead of an assembly name.

The value is written to RunError.Type and carries no secret.

Gets the name of the function that did not return in time.

public string? FunctionName { get; init; }

string?

Gets the timeout that elapsed.

public TimeSpan? Timeout { get; init; }

TimeSpan?