Class FaultResolver
- Namespace
- Cuemon.Diagnostics
- Assembly
- Cuemon.Diagnostics.dll
Provides a way to evaluate an exception and provide details about it in a developer friendly way.
public class FaultResolver : FaultHandler<ExceptionDescriptor>
- Inheritance
-
FaultResolver
- Inherited Members
Constructors
FaultResolver(Func<Exception, Boolean>, Func<Exception, ExceptionDescriptor>)
Initializes a new instance of the FaultResolver class.
public FaultResolver(Func<Exception, bool> validator, Func<Exception, ExceptionDescriptor> descriptor)
Parameters
validator
Func<Exception, Boolean>The function delegate that evaluates an Exception.
descriptor
Func<Exception, ExceptionDescriptor>The function delegate that provides details about an Exception.
Exceptions
- ArgumentNullException
validator
cannot be null -or-descriptor
cannot be null.