Specified which exceptions to catch.