Table of Contents

Class TyphonTimeoutException

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

errorCode TyphonErrorCode

Numeric error code identifying the specific failure.

message string

Human-readable description of the timeout.

waitDuration TimeSpan

How 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

errorCode TyphonErrorCode

Numeric error code identifying the specific failure.

message string

Human-readable description of the timeout.

waitDuration TimeSpan

How long the caller waited before the timeout fired.

innerException Exception

The exception that caused this timeout.

Properties

IsTransient

Timeouts are always transient — the resource is presumably available later.

public override bool IsTransient { get; }

Property Value

bool

WaitDuration

How long the caller waited before the timeout fired.

public TimeSpan WaitDuration { get; }

Property Value

TimeSpan