nerdexam
Salesforce

PDII · Question #16

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?

Sign in or unlock PDII to reveal the answer and full explanation for question #16. The question stem and answer options stay visible for context.

Question

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?

Options

  • AAdd an onerror event handler to the tag.
  • BAdd an error-view component to the markup.
  • CUse an AuraHandledException in a try/catch block.
  • DUse ProcessBuilder to catch the error.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice