FabricNotReadableException Class

Definition

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

public class FabricNotReadableException : System.Fabric.FabricTransientException
type FabricNotReadableException = class
    inherit FabricTransientException
Public Class FabricNotReadableException
Inherits FabricTransientException
Inheritance

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(FabricErrorCode)

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

FabricNotReadableException(SerializationInfo, StreamingContext)

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

FabricNotReadableException(SerializationInfo, StreamingContext, FabricErrorCode)

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

FabricNotReadableException(String)

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

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, Exception, FabricErrorCode)

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

FabricNotReadableException(String, FabricErrorCode)

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

Properties

ErrorCode

Gets the error code parameter.

(Inherited from FabricException)

Applies to