Skip to content

JsonApiExceptionFilter

class in JsonApiToolkit.Filters

Transforms exceptions into JSON:API compliant error responses. Handles known JsonApiException types and logs unexpected errors.

public class JsonApiExceptionFilter

Constructors

JsonApiExceptionFilter(logger: ILogger)

Methods

OnException(context: ExceptionContext)

: void

Handles exceptions and converts them to JSON:API error responses.

Parameters - context