.NET API
TraconWorkflowFunctionTimeoutException
Tracon.Abstractions.dllThrown 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()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”TraconWorkflowFunctionTimeoutException()
Section titled “ TraconWorkflowFunctionTimeoutException()”Creates a new error.
public TraconWorkflowFunctionTimeoutException()TraconWorkflowFunctionTimeoutException(string)
Section titled “ TraconWorkflowFunctionTimeoutException(string)”Creates a new error.
public TraconWorkflowFunctionTimeoutException(string message)Parameters
Section titled “Parameters”message string
The error message.
TraconWorkflowFunctionTimeoutException(string, Exception)
Section titled “ TraconWorkflowFunctionTimeoutException(string, Exception)”Creates a new error.
public TraconWorkflowFunctionTimeoutException(string message, Exception innerException)Parameters
Section titled “Parameters”message string
The error message.
innerException Exception
The underlying error.
Fields
Section titled “Fields”WorkflowFunctionTimeoutErrorType
Section titled “ WorkflowFunctionTimeoutErrorType”The stable value written to TraconException.ErrorType.
public const string WorkflowFunctionTimeoutErrorType = "workflow_function_timeout"Field Value
Section titled “Field Value”Properties
Section titled “Properties”ErrorType
Section titled “ ErrorType”Gets the stable error type name written to the run record.
public override string ErrorType { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
FunctionName
Section titled “ FunctionName”Gets the name of the function that did not return in time.
public string? FunctionName { get; init; }Property Value
Section titled “Property Value”Timeout
Section titled “ Timeout”Gets the timeout that elapsed.
public TimeSpan? Timeout { get; init; }