Salesforce Platform Developer I (legacy) — Question 219
Which exception type cannot be caught?
Answer options
- A. LimitException
- B. NoAccessException
- C. A Custom Exception
- D. CalloutException
Correct answer: A
Explanation
The LimitException is designed to indicate that a governor limit has been exceeded, and it cannot be caught by the usual exception handling mechanisms in Apex. NoAccessException, A Custom Exception, and CalloutException can all be caught and handled appropriately in code.