ErrorHandlerCollection catchAll(Function handler)

Source

static ErrorHandlerCollection catchAll(Function handler) {
  return new ErrorHandlerCollection({dynamic: pipeActual(resolveMiddleware([
    new HandlerMiddleware(handler)
  ]))});
}