Defines an error that is thrown when the resolving URL does not match any
pattern known by the router.
This error cannot be handled by the RouterOptions.errorHandler. To
handle this error, you should create a route that consumes all possible URLs
and place it at the end of the routes list. This way, if the preceding routes
are unable to handle the URL, it will be handled by this route, and the
NotFoundError will never be thrown.
Defines an error that is thrown when the resolving URL does not match any pattern known by the router.
This error cannot be handled by the RouterOptions.errorHandler. To handle this error, you should create a route that consumes all possible URLs and place it at the end of the routes list. This way, if the preceding routes are unable to handle the URL, it will be handled by this route, and the
NotFoundError
will never be thrown.Example
The example above will print the following message in the console: