Class TyphonTimeoutException
Base for all timeout-related exceptions.
Enables catch (TyphonTimeoutException) to handle any timeout uniformly.
Does NOT inherit from TimeoutException (would break single-inheritance chain).
public class TyphonTimeoutException : TyphonException, ISerializable
- Inheritance
-
TyphonTimeoutException
- Implements
- Derived
- Inherited Members
Constructors
TyphonTimeoutException(TyphonErrorCode, string, TimeSpan)
Creates a new TyphonTimeoutException with the specified error code, message, and wait duration.
public TyphonTimeoutException(TyphonErrorCode errorCode, string message, TimeSpan waitDuration)
Parameters
errorCodeTyphonErrorCodeNumeric error code identifying the specific failure.
messagestringHuman-readable description of the timeout.
waitDurationTimeSpanHow long the caller waited before the timeout fired.
TyphonTimeoutException(TyphonErrorCode, string, TimeSpan, Exception)
Creates a new TyphonTimeoutException with the specified error code, message, wait duration, and inner exception.
public TyphonTimeoutException(TyphonErrorCode errorCode, string message, TimeSpan waitDuration, Exception innerException)
Parameters
errorCodeTyphonErrorCodeNumeric error code identifying the specific failure.
messagestringHuman-readable description of the timeout.
waitDurationTimeSpanHow long the caller waited before the timeout fired.
innerExceptionExceptionThe exception that caused this timeout.
Properties
IsTransient
Timeouts are always transient — the resource is presumably available later.
public override bool IsTransient { get; }
Property Value
WaitDuration
How long the caller waited before the timeout fired.
public TimeSpan WaitDuration { get; }