ExceptionHandler.json constructor

const ExceptionHandler.json({
  1. Object? builder(
    1. SpryHttpException exception
    )?,
})

Json exception handler.

builder is used to build the response body.

Implementation

const factory ExceptionHandler.json(
        {Object? Function(SpryHttpException exception)? builder}) =
    _JsonExceptionHandler;