Delen via


FabricNotPrimaryException Constructors

Definition

Overloads

FabricNotPrimaryException()

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

FabricNotPrimaryException(FabricErrorCode)

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

FabricNotPrimaryException(String)

Initializes a new instance of FabricNotPrimaryException class with a specified message.

FabricNotPrimaryException(SerializationInfo, StreamingContext)

Initializes a new instance of FabricNotPrimaryException class with specified info, context.

FabricNotPrimaryException(String, Exception)

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

FabricNotPrimaryException(String, FabricErrorCode)

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

FabricNotPrimaryException(SerializationInfo, StreamingContext, FabricErrorCode)

Initializes a new instance of FabricNotPrimaryException class with specified info, context and error code.

FabricNotPrimaryException(String, Exception, FabricErrorCode)

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

FabricNotPrimaryException()

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

public FabricNotPrimaryException ();
Public Sub New ()

Applies to

FabricNotPrimaryException(FabricErrorCode)

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

public FabricNotPrimaryException (System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricNotPrimaryException : System.Fabric.FabricErrorCode -> System.Fabric.FabricNotPrimaryException
Public Sub New (errorCode As FabricErrorCode)

Parameters

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricNotPrimaryException(String)

Initializes a new instance of FabricNotPrimaryException class with a specified message.

public FabricNotPrimaryException (string message);
new System.Fabric.FabricNotPrimaryException : string -> System.Fabric.FabricNotPrimaryException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

FabricNotPrimaryException(SerializationInfo, StreamingContext)

Initializes a new instance of FabricNotPrimaryException class with specified info, context.

protected FabricNotPrimaryException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Fabric.FabricNotPrimaryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Fabric.FabricNotPrimaryException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that contains serialized object data of the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination. The context parameter is reserved for future use and can be null.

Applies to

FabricNotPrimaryException(String, Exception)

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

public FabricNotPrimaryException (string message, Exception inner);
new System.Fabric.FabricNotPrimaryException : string * Exception -> System.Fabric.FabricNotPrimaryException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception or null if no inner exception is specified. The Exception class provides more details about the inner exception.

Applies to

FabricNotPrimaryException(String, FabricErrorCode)

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

public FabricNotPrimaryException (string message, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricNotPrimaryException : string * System.Fabric.FabricErrorCode -> System.Fabric.FabricNotPrimaryException
Public Sub New (message As String, errorCode As FabricErrorCode)

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricNotPrimaryException(SerializationInfo, StreamingContext, FabricErrorCode)

Initializes a new instance of FabricNotPrimaryException class with specified info, context and error code.

protected FabricNotPrimaryException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricNotPrimaryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext * System.Fabric.FabricErrorCode -> System.Fabric.FabricNotPrimaryException
Protected Sub New (info As SerializationInfo, context As StreamingContext, errorCode As FabricErrorCode)

Parameters

info
SerializationInfo

The SerializationInfo object that contains serialized object data of the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination. The context parameter is reserved for future use and can be null.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricNotPrimaryException(String, Exception, FabricErrorCode)

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

public FabricNotPrimaryException (string message, Exception inner, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricNotPrimaryException : string * Exception * System.Fabric.FabricErrorCode -> System.Fabric.FabricNotPrimaryException
Public Sub New (message As String, inner As Exception, errorCode As FabricErrorCode)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception or null if no inner exception is specified. The Exception class provides more details about the inner exception.

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to