[Minor] use locator when throwing exceptions