Table of Contents

TryResolveFault Method

Definition

Namespace
Cuemon.Diagnostics
Assemblies
Cuemon.Diagnostics.dll
Source
src/Cuemon.Diagnostics/FaultHandler.cs

TryResolveFault(Exception, out TDescriptor)

Attempts to resolve TDescriptor from the underlying function delegates.

public bool TryResolveFault(Exception failure, out TDescriptor descriptor)

Parameters

failure Exception

The Exception that caused the current failure.

descriptor TDescriptor

The resulting TDescriptor instance providing the reason of the failure, or default.

Returns

bool

true if an instance of TDescriptor providing the reason for the failure is available, false otherwise.