I am sure my Title does not help much, but not sure how to shorten this question concisely.
I have a Lightning Component that has the ability to update a case record. I have an APEX Trigger that under some rarer conditions will stop that update from happening.
How can I show the thisCase.addError('Blah blah blah')
from the Trigger on the Lightning Component? Do I have to try
and catch
the update statement in my APEX Lightning Controller? I would not think so as I don't see in messages coming through the Dev Console without the Try Catch block.
Editing the Case record directly shows the addError()
as expected. Just wondering how to transfer the contents of the addError()
to the Lightning Component for display as well.