Add exception-handling helper methods.