Use dispatching for exception localizing

allows repo-specific stuff to stay in repo and
the localizer to be more flexible.

Change-Id: I29c47c71a1af2e9f634c97003825f7c55a3df56d
Merge "Use dispatching for exception localizing"