Table of Contents

Class BrokenCircuitException<TResult>

Namespace
Polly.CircuitBreaker
Assembly
Polly.dll

Exception thrown when a circuit is broken.

public class BrokenCircuitException<TResult> : BrokenCircuitException, ISerializable

Type Parameters

TResult

The type of returned results being handled by the policy.

Inheritance
BrokenCircuitException<TResult>
Implements
Inherited Members

Constructors

BrokenCircuitException(SerializationInfo, StreamingContext)

Initializes a new instance of the BrokenCircuitException class.

protected BrokenCircuitException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

BrokenCircuitException(string, TResult)

Initializes a new instance of the BrokenCircuitException<TResult> class.

public BrokenCircuitException(string message, TResult result)

Parameters

message string

The message that describes the error.

result TResult

The result which caused the circuit to break.

BrokenCircuitException(TResult)

Initializes a new instance of the BrokenCircuitException<TResult> class.

public BrokenCircuitException(TResult result)

Parameters

result TResult

The result which caused the circuit to break.

Properties

Result

The result value which was considered a handled fault, by the policy.

public TResult Result { get; }

Property Value

TResult