Table of Contents

Class TimeoutRejectedException

Namespace
Polly.Timeout
Assembly
Polly.Core.dll

Exception thrown when a delegate executed through a timeout resilience strategy does not complete, before the configured timeout.

public class TimeoutRejectedException : ExecutionRejectedException, ISerializable
Inheritance
TimeoutRejectedException
Implements
Inherited Members

Constructors

TimeoutRejectedException()

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException()

TimeoutRejectedException(string)

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException(string message)

Parameters

message string

The message.

TimeoutRejectedException(string, Exception)

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The inner exception.

TimeoutRejectedException(string, TimeSpan)

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException(string message, TimeSpan timeout)

Parameters

message string

The message.

timeout TimeSpan

The timeout value that caused this exception.

TimeoutRejectedException(string, TimeSpan, Exception)

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException(string message, TimeSpan timeout, Exception innerException)

Parameters

message string

The message.

timeout TimeSpan

The timeout value that caused this exception.

innerException Exception

The inner exception.

TimeoutRejectedException(TimeSpan)

Initializes a new instance of the TimeoutRejectedException class.

public TimeoutRejectedException(TimeSpan timeout)

Parameters

timeout TimeSpan

The timeout value that caused this exception.

Properties

Timeout

Gets the timeout value that caused this exception.

public TimeSpan Timeout { get; }

Property Value

TimeSpan