_getExceptionHandler now receives the route context so that different exception handlers can be used depending on the context.