Property IsRetryable
IsRetryable
Gets the value indicating whether the operation that has thrown
this exception may be retried.
Declaration
public virtual bool IsRetryable { get; }
Property Value
Type | Description |
---|---|
Boolean |
true if the operation that has thrown this exception may be
retried, otherwise false . The default implementation of
NoSQLException always returns false .
|
Remarks
Operation retries are handled automatically by the driver. The application may customize the retry behavior by setting RetryHandler. It is possible that an application may also choose to retry the operation, in which case this property indicates when the operation should be retried.
For instances of NoSQLException the driver will
retry only those that have IsRetryable equal
true
. In addition, standard exception types indicating
a network error will be retried as well. See
IRetryHandler for details.
Instances of RetryableException are always retryable. Other subclasses of NoSQLException are usually not retryable but certain instances could be retried if indicated in the documentation for corresponding exception class.