ExceptionOptions.UseJsonExceptionHandler method

Builds a JSON fallback handler that can be used if no script/inline handler is provided.

public void UseJsonExceptionHandler(bool useProbletails, bool includeDetailsInDevelopment, 
    bool compress = false)
parameter description
useProbletails Whether to use RFC 7807 Probletails in the JSON fallback.
includeDetailsInDevelopment Whether to include exception details in development.
compress Whether to compress the JSON response.

See Also