executeHandler method
Executes a handler with proper error handling.
Implementation
Future<void> executeHandler(
RequestHandler handler,
Request req,
Response res,
) async {
final wrappedHandler = wrapWithExceptionHandler(handler);
await wrappedHandler(req, res);
}