Class CdcRetryExhaustedException
The exception a CDC processor stops with when a failure it treated as transient did not clear within the configured number of consecutive attempts.
public sealed class CdcRetryExhaustedException : ResourceException, ISerializable
- Inheritance
-
CdcRetryExhaustedException
- Implements
- Inherited Members
Remarks
This is distinct from a fatal error on purpose, because the remedy differs. A fatal error will fail the same way on every attempt, so restarting is futile until something is changed. A retry that was exhausted was expected to clear and did not, often because another process still held a resource, so restarting the processor after a delay is a reasonable response. The last failure is the InnerException.
Raised only when MaxConsecutiveTransientFailures is set.
Constructors
CdcRetryExhaustedException()
Initializes a new instance of the CdcRetryExhaustedException class.
public CdcRetryExhaustedException()
CdcRetryExhaustedException(int, Exception)
Initializes a new instance of the CdcRetryExhaustedException class for a processor that reached its limit of consecutive transient failures.
public CdcRetryExhaustedException(int consecutiveFailures, Exception lastFailure)
Parameters
consecutiveFailuresintThe number of consecutive transient failures observed.
lastFailureExceptionThe last transient failure.
CdcRetryExhaustedException(string)
Initializes a new instance of the CdcRetryExhaustedException class with a message.
public CdcRetryExhaustedException(string message)
Parameters
messagestringThe message that describes the error.
CdcRetryExhaustedException(string, Exception?)
Initializes a new instance of the CdcRetryExhaustedException class with a message and the failure that caused it.
public CdcRetryExhaustedException(string message, Exception? innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe last transient failure.
Properties
ConsecutiveFailures
Gets the number of consecutive transient failures the processor observed before stopping.
public int ConsecutiveFailures { get; }
Property Value
- int
The failure count, or zero when the exception was created without one.