Skip to main content
Tomasz Indyk (Company) 님이 #Apex에 질문했습니다
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 !
답변 1개
  1. 2020년 4월 15일 오후 9:18
    Use throw new aurahandled excpetion in apex and catch in error statement in lwc js
0/9000