你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FabricException Class

Definition

The base Service Fabric exception class.

[System.Serializable]
public class FabricException : Exception
[<System.Serializable>]
type FabricException = class
    inherit Exception
Public Class FabricException
Inherits Exception
Inheritance
FabricException
Derived
Attributes

Remarks

Defines an error code property that is used to indicate the precise circumstance that caused the exception, in addition to properties defined by the base Exception class.

Constructors

Name Description
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(SerializationInfo, StreamingContext, FabricErrorCode)

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

FabricException(SerializationInfo, StreamingContext)

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

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

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

Properties

Name Description
ErrorCode

Gets the error code parameter.

Applies to