다음을 통해 공유


FabricException Constructors

Definition

Overloads

FabricException()

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

FabricException(FabricErrorCode)

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

FabricException(String)

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

FabricException(SerializationInfo, StreamingContext)

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

FabricException(String, Exception)

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

FabricException(String, FabricErrorCode)

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

FabricException(String, Int32)

Initializes a new instance of FabricException class with specified message and Hresult.

FabricException(SerializationInfo, StreamingContext, FabricErrorCode)

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

FabricException(String, Exception, FabricErrorCode)

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

FabricException(String, Exception, Int32)

Initializes a new instance of FabricException class with specified message, inner exception and HResult.

FabricException()

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

public FabricException ();
Public Sub New ()

Applies to

FabricException(FabricErrorCode)

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

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

Parameters

errorCode
FabricErrorCode

The error code associated with the exception.

Applies to

FabricException(String)

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

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

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

FabricException(SerializationInfo, StreamingContext)

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

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

FabricException(String, Exception)

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

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

FabricException(String, FabricErrorCode)

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

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

FabricException(String, Int32)

Initializes a new instance of FabricException class with specified message and Hresult.

public FabricException (string message, int hresult);
new System.Fabric.FabricException : string * int -> System.Fabric.FabricException
Public Sub New (message As String, hresult As Integer)

Parameters

message
String

The error message that explains the reason for the exception.

hresult
Int32

The HResult that the exception is wrapping around

Applies to

FabricException(SerializationInfo, StreamingContext, FabricErrorCode)

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

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

FabricException(String, Exception, FabricErrorCode)

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

FabricException(String, Exception, Int32)

Initializes a new instance of FabricException class with specified message, inner exception and HResult.

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

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The inner exception.

hresult
Int32

The HResult that the exception is wrapping around

Applies to