Class BrokenCircuitException<TResult>
- Namespace
- Polly.CircuitBreaker
- Assembly
- Polly.dll
Exception thrown when a circuit is broken.
public class BrokenCircuitException<TResult> : BrokenCircuitException, ISerializableType 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
- infoSerializationInfo
- The SerializationInfo that holds the serialized object data about the exception being thrown. 
- contextStreamingContext
- 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
- messagestring
- The message that describes the error. 
- resultTResult
- The result which caused the circuit to break. 
BrokenCircuitException(TResult)
Initializes a new instance of the BrokenCircuitException<TResult> class.
public BrokenCircuitException(TResult result)Parameters
- resultTResult
- 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