Class TimeoutExceededException
- Namespace
- Kevlar
- Assembly
- Kevlar.dll
Thrown when a timeout strategy cancels an execution that exceeded its allotted time.
public sealed class TimeoutExceededException : KevlarException, ISerializable
- Inheritance
-
TimeoutExceededException
- Implements
- Inherited Members
Constructors
TimeoutExceededException()
Initializes a timeout exception without a recorded timeout.
public TimeoutExceededException()
TimeoutExceededException(string)
Initializes a timeout exception with a custom message.
public TimeoutExceededException(string message)
Parameters
messagestring
TimeoutExceededException(string, Exception)
Initializes a timeout exception with a custom message and cause.
public TimeoutExceededException(string message, Exception innerException)
Parameters
TimeoutExceededException(TimeSpan)
Initializes the exception for the given timeout.
public TimeoutExceededException(TimeSpan timeout)
Parameters
timeoutTimeSpan
TimeoutExceededException(TimeSpan, OperationCanceledException)
Initializes the exception for the given timeout and triggering cancellation.
public TimeoutExceededException(TimeSpan timeout, OperationCanceledException innerException)
Parameters
timeoutTimeSpaninnerExceptionOperationCanceledException
Properties
Timeout
The timeout that was exceeded.
public TimeSpan Timeout { get; }