nerdexam
Salesforce

PDII · Question #16

PDII Question #16: Real Exam Question with Answer & Explanation

The correct answer is A. Add an onerror event handler to the tag.. See the full explanation below for the reasoning.

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.

Community Discussion

No community discussion yet for this question.

Full PDII Practice