IServicePartition.ReportFault Method (FaultType)
Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2
Enables the replica to report a fault to the runtime and indicates that it has encountered some error and must either be restarted or removed.
Namespace: System.Fabric
Assembly: System.Fabric (in System.Fabric.dll)
Syntax
void ReportFault(
FaultType faultType
)
Parameters
faultType
Type: System.Fabric.FaultTypeThe FaultType that the service has encountered.
Exceptions
Exception | Condition |
---|---|
FabricObjectClosedException | This indicates that the partition object is closed. The replica/replicator/instance has either been closed or is about to be closed. |
Remarks
A fault is typically reported when the service code encounters some issue from which it cannot recover.
See Also
IServicePartition Interface
System.Fabric Namespace
Return to top