You need to sign in to do that
Don't have an account?

What does the documentation mean to mark "a record with a custom error"?
For example:
For the sObject method addError(errorMsg) the documentation says to mark "a record with a custom error message and prevents any DML operation from occurring."
Does that mean the system will mark internally that a record occurred, and a developer can search for these errors later on?
Or does it mean that the error will be available for the duration of the transaction in which the marking of the error occured?
Seen Here:
https://developer.salesforce.com/docs/atlas.en-us.198.0.apexcode.meta/apexcode/apex_methods_system_sobject.htm#apex_System_SObject_addError
Thank you
For the sObject method addError(errorMsg) the documentation says to mark "a record with a custom error message and prevents any DML operation from occurring."
Does that mean the system will mark internally that a record occurred, and a developer can search for these errors later on?
Or does it mean that the error will be available for the duration of the transaction in which the marking of the error occured?
Seen Here:
https://developer.salesforce.com/docs/atlas.en-us.198.0.apexcode.meta/apexcode/apex_methods_system_sobject.htm#apex_System_SObject_addError
Thank you
All Answers
"The error will not be recorded anywhere outside of your standard debug logging mechanism (ie not stored on the record)."
That line answered my question!