Q: How to catch server error in JS for LWC How can I catch the server error message in JS for LWC. I have a trigger for object A and for this object I have LWC where I adding new records. Trigger checking whether percents on object is equal 100. When record has less than 100% show message "ABC".
I would like to get the same error message when I creating new record using LWC. How may I do this using JS for LWC ? 
Thanks !

A: If you are using record.addError('ABC'); in the trigger handler, your LWC should catch that error. It can be displayed pretty simply, check out this post here for a description of how to handle aura handled exceptions within a Lighting Web Component.
