What should the developer do to ensure a more meaningful message?

A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component.

What should the developer do to ensure a more meaningful message?
A . Add an onerror event handler to the tag.
B . Add an error-view component to the markup.
C . Use an AuraHandledException in a try/catch block.
D . Use ProcessBuilder to catch the error.

Answer: C

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments