BrokenCircuitException
Exception thrown when a circuit is broken.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace Polly.CircuitBreaker
{
[Serializable]
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class BrokenCircuitException : ExecutionRejectedException
{
internal const string DefaultMessage = "The circuit is now open and is not allowing calls.";
public BrokenCircuitException()
: base("The circuit is now open and is not allowing calls.")
{
}
public BrokenCircuitException(string message)
: base(message)
{
}
public BrokenCircuitException(string message, Exception inner)
: base(message, inner)
{
}
protected BrokenCircuitException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}