共用方式為


FabricNotReadableException Class

Definition

The exception that is thrown when a service partition or a replica cannot accept reads.

[System.Serializable]
public class FabricNotReadableException : System.Fabric.FabricTransientException
[<System.Serializable>]
type FabricNotReadableException = class
    inherit FabricTransientException
Public Class FabricNotReadableException
Inherits FabricTransientException
Inheritance
Attributes

Remarks

The exception can be seen in the following 2 scenarios : 1. The partition does not have a read quorum. 2. The service is trying to read from an IdleSecondary replica.

Handling FabricNotReadableException for Reliable Collections : If FabricNotReadableException is seen by the service or a client call, the exception should be caught, current transaction should be disposed and all the operations should be retried with a new transaction object. Read status will eventually be granted or a non-retriable exception will be thrown. An optional backoff can be added before retrying.

Constructors

FabricNotReadableException()

Initializes a new instance of FabricNotReadableException class with error code Unknown.

FabricNotReadableException(SerializationInfo, StreamingContext)

Initializes a new instance of FabricNotReadableException class from a serialized object data, with a specified context.

FabricNotReadableException(String, Exception)

Initializes a new instance of FabricNotReadableException class with a specified error message and a reference to the inner exception that is the cause of this exception.

FabricNotReadableException(String)

Initializes a new instance of FabricNotReadableException class with error code Unknown and a specified error message.

Properties

ErrorCode

Gets the error code parameter.

(Inherited from FabricException)

Applies to