Interceptor constructor

Interceptor({
  1. ExceptionHandler? handler,
})

Create a Interceptor middleware.

Implementation

factory Interceptor({ExceptionHandler? handler}) =>
    Interceptor._internal(handler ?? ExceptionHandler.onlyStatusCode());