Catch specific error instead of all errors.