Localized exceptions

Allows detection of locale if exception occurs
locale is preserved after exception