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
stringThe message that describes the error.
BrokenCircuitException(string, Exception)
Initializes a new instance of the BrokenCircuitException class.
public BrokenCircuitException(string message, Exception inner)
Parameters
BrokenCircuitException(string, TimeSpan)
Initializes a new instance of the BrokenCircuitException class.
public BrokenCircuitException(string message, TimeSpan retryAfter)
Parameters
message
stringThe message that describes the error.
retryAfter
TimeSpanThe 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
stringThe message that describes the error.
retryAfter
TimeSpanThe period after which the circuit will close.
inner
ExceptionThe inner exception.
BrokenCircuitException(TimeSpan)
Initializes a new instance of the BrokenCircuitException class.
public BrokenCircuitException(TimeSpan retryAfter)
Parameters
retryAfter
TimeSpanThe 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
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.