I created an addError() method in a trigger with a custom error message like so:
item.addError('Hey! You aren't authorized to do that!');
I have also received error emails like so:
Apex script unhandled trigger exception by user/organization...(etc)
FIELD_CUSTOM_VALIDATION_EXCEPTION, Hey! You aren't authorized to do that!: 
I suppose I have two questions:
- Am I getting this email because of the
addError()message? I looked here and didn't see it mention anything about getting an email, but because it has the same message I have to assume it is correleated.
- If it is because of that
addError()message, is there a way to turn the email off?