Change the exceptions that it catches.