Share via


FabricObjectClosedException Constructors

Definition

Overloads

FabricObjectClosedException()

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

FabricObjectClosedException(FabricErrorCode)

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

FabricObjectClosedException(String)

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

FabricObjectClosedException(SerializationInfo, StreamingContext)

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

FabricObjectClosedException(String, Exception)

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

FabricObjectClosedException(String, FabricErrorCode)

Initializes a new instance of FabricObjectClosedException class.

FabricObjectClosedException(SerializationInfo, StreamingContext, FabricErrorCode)

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

FabricObjectClosedException(String, Exception, FabricErrorCode)

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

FabricObjectClosedException()

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

public FabricObjectClosedException ();
Public Sub New ()

Applies to

FabricObjectClosedException(FabricErrorCode)

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

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

Parameters

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricObjectClosedException(String)

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

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

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

FabricObjectClosedException(SerializationInfo, StreamingContext)

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

protected FabricObjectClosedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Fabric.FabricObjectClosedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Fabric.FabricObjectClosedException
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

FabricObjectClosedException(String, Exception)

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

public FabricObjectClosedException (string message, Exception inner);
new System.Fabric.FabricObjectClosedException : string * Exception -> System.Fabric.FabricObjectClosedException
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

FabricObjectClosedException(String, FabricErrorCode)

Initializes a new instance of FabricObjectClosedException class.

public FabricObjectClosedException (string message, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricObjectClosedException : string * System.Fabric.FabricErrorCode -> System.Fabric.FabricObjectClosedException
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

FabricObjectClosedException(SerializationInfo, StreamingContext, FabricErrorCode)

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

protected FabricObjectClosedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricObjectClosedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext * System.Fabric.FabricErrorCode -> System.Fabric.FabricObjectClosedException
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

FabricObjectClosedException(String, Exception, FabricErrorCode)

Initializes a new instance of FabricObjectClosedException 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 FabricObjectClosedException (string message, Exception inner, System.Fabric.FabricErrorCode errorCode);
new System.Fabric.FabricObjectClosedException : string * Exception * System.Fabric.FabricErrorCode -> System.Fabric.FabricObjectClosedException
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