call method

  1. @internal
  2. @mustCallSuper
FutureOr<void> call(
  1. Context context,
  2. Next next
)

The exception filter middleware-style function.

Implementation

@internal
@mustCallSuper
FutureOr<void> call(Context context, Next next) {
  return Future.sync(next).onError<T>(_createHandler(context));
}