TestimoX

API Reference

Class

RuleExecutionTimeoutException

Namespace TestimoX.Exceptions
Assembly TestimoX
Base Exception
Implements
ISerializable

Exception thrown when a rule execution exceeds the allowed timeout.

Inheritance

  • Exception
  • RuleExecutionTimeoutException

Remarks

This exception helps detect long running operations that exceed the configured execution time for a rule.

Examples


try {
    await runner.ExecuteAsync(rule, TimeSpan.FromSeconds(5));
} catch (RuleExecutionTimeoutException ex) {
    Console.WriteLine($"Rule timed out after {ex.Timeout}");
}

        

Constructors

public RuleExecutionTimeoutException(TimeSpan timeout, String message) #

Creates a timeout exception for a rule execution.

Parameters

timeout System.TimeSpan requiredposition: 0
Maximum allowed execution time.
message System.String requiredposition: 1
Human-readable error message.

Properties

public TimeSpan Timeout { get; } #

Configured timeout value that was exceeded.