onError
Called when a routing request fails or encounters an error.
Parameters
routeResponse
the RouteResponse containing error details or diagnostic information. This response typically includes an error code, message, and optionally partial route information to assist in debugging.