.NET API
TraconProviderUnavailableException
Tracon.Abstractions.dllThrown when the circuit breaker has temporarily taken a model provider out of service.
public sealed class TraconProviderUnavailableException : TraconException, ISerializable- Inheritance
- object ← Exception ← TraconException ← TraconProviderUnavailableException
- Implements
- ISerializable
- Inherited Members
- TraconException.ErrorType, Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Thrown while the circuit is Open; no request reaches the
provider. The circuit opens once consecutive failures pass
FailureThreshold, and moves to half-open for a single trial after
BreakDuration.
Constructors
Section titled “Constructors”TraconProviderUnavailableException()
Section titled “ TraconProviderUnavailableException()”Creates a new error.
public TraconProviderUnavailableException()TraconProviderUnavailableException(string)
Section titled “ TraconProviderUnavailableException(string)”Creates a new error.
public TraconProviderUnavailableException(string message)Parameters
Section titled “Parameters”message string
The error message.
TraconProviderUnavailableException(string, Exception)
Section titled “ TraconProviderUnavailableException(string, Exception)”Creates a new error.
public TraconProviderUnavailableException(string message, Exception innerException)Parameters
Section titled “Parameters”message string
The error message.
innerException Exception
The underlying error.
Fields
Section titled “Fields”ProviderUnavailableErrorType
Section titled “ ProviderUnavailableErrorType”The stable value written to TraconException.ErrorType.
public const string ProviderUnavailableErrorType = "provider_unavailable"Field Value
Section titled “Field Value”Properties
Section titled “Properties”ErrorType
Section titled “ ErrorType”Gets the stable error type name written to the run record.
public override string ErrorType { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Defaults to the full name of the exception type, so today’s behaviour does
not change. A derived type overrides this member when the record has to be
machine readable — for example TraconContentFilteredException
writes content_filtered. Reports and alert rules can rely on this
stable name instead of an assembly name.
The value is written to RunError.Type and carries no secret.
ProviderName
Section titled “ ProviderName”Gets the name of the provider whose circuit is open.
public string? ProviderName { get; init; }Property Value
Section titled “Property Value”RetryAfter
Section titled “ RetryAfter”Gets the time at which the circuit goes half-open and is retried.
public DateTimeOffset? RetryAfter { get; init; }