Table of Contents

Class ApizrExceptionHandler

Namespace
Apizr
Assembly
Apizr.dll
public class ApizrExceptionHandler : IApizrExceptionHandler
Inheritance
ApizrExceptionHandler
Implements
Derived
Inherited Members

Constructors

ApizrExceptionHandler(Action<ApizrException>)

[Obsolete("Catching an exception by an Action is now replaced by a Func returning a handled boolean flag")]
public ApizrExceptionHandler(Action<ApizrException> handler)

Parameters

handler Action<ApizrException>

ApizrExceptionHandler(Func<ApizrException, bool>)

public ApizrExceptionHandler(Func<ApizrException, bool> handler)

Parameters

handler Func<ApizrException, bool>

ApizrExceptionHandler(Func<ApizrException, Task<bool>>)

public ApizrExceptionHandler(Func<ApizrException, Task<bool>> handler)

Parameters

handler Func<ApizrException, Task<bool>>

Fields

Handler

protected readonly Func<ApizrException, Task<bool>> Handler

Field Value

Func<ApizrException, Task<bool>>

Methods

HandleAsync(ApizrException)

public virtual Task<bool> HandleAsync(ApizrException ex)

Parameters

ex ApizrException

Returns

Task<bool>