Table of Contents

Class AsyncJsonApiExceptionFilter

Namespace
JsonApiDotNetCore.Middleware
Assembly
JsonApiDotNetCore.dll

Application-wide exception filter that invokes IExceptionHandler for JSON:API requests.

[PublicAPI]
public sealed class AsyncJsonApiExceptionFilter : IAsyncJsonApiExceptionFilter, IAsyncExceptionFilter, IFilterMetadata
Inheritance
AsyncJsonApiExceptionFilter
Implements
Inherited Members

Constructors

AsyncJsonApiExceptionFilter(IExceptionHandler)

public AsyncJsonApiExceptionFilter(IExceptionHandler exceptionHandler)

Parameters

exceptionHandler IExceptionHandler

Methods

OnExceptionAsync(ExceptionContext)

Called after an action has thrown an Exception.

public Task OnExceptionAsync(ExceptionContext context)

Parameters

context ExceptionContext

The ExceptionContext.

Returns

Task

A Task that on completion indicates the filter has executed.