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