More refactoring of exception handlers to get_locator_obj (WIP).