LocationNotFoundError
class LocationNotFoundError extends Error {}
Error object that is thrown by useRoutes when the current location does not match any route in the given route builder.
It is recommended to catch this error with an error boundary. For determining whether a catched error is a LocationNotFoundError, the isLocationNotFoundError util is useful.