Raise exception if travelling through an invalid route