Table of Contents

Class BrokenCircuitException

Namespace
Polly.CircuitBreaker
Assembly
Polly.Core.dll

Exception thrown when a circuit is broken.

public class BrokenCircuitException : ExecutionRejectedException, ISerializable
Inheritance
BrokenCircuitException
Implements
Derived
Inherited Members

Constructors

BrokenCircuitException()

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException()

BrokenCircuitException(string)

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException(string message)

Parameters

message string

The message that describes the error.

BrokenCircuitException(string, Exception)

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException(string message, Exception inner)

Parameters

message string

The message that describes the error.

inner Exception

The inner exception.

BrokenCircuitException(string, TimeSpan)

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException(string message, TimeSpan retryAfter)

Parameters

message string

The message that describes the error.

retryAfter TimeSpan

The period after which the circuit will close.

BrokenCircuitException(string, TimeSpan, Exception)

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException(string message, TimeSpan retryAfter, Exception inner)

Parameters

message string

The message that describes the error.

retryAfter TimeSpan

The period after which the circuit will close.

inner Exception

The inner exception.

BrokenCircuitException(TimeSpan)

Initializes a new instance of the BrokenCircuitException class.

public BrokenCircuitException(TimeSpan retryAfter)

Parameters

retryAfter TimeSpan

The period after which the circuit will close.

Properties

RetryAfter

Gets the amount of time before the circuit can become closed, if known.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

Remarks

This value is specified when the instance is constructed and may be inaccurate if consumed at a later time. Can be null if not provided or if the circuit was manually isolated.