Returns a state of a route or throws if current route isn't the one that was provided.
A route to retrieve state of.
Returns a state of a route or throws if current route isn't the one that was provided.