Salesforce Platform Developer I (legacy) — Question 32

Which three statements are true regarding custom exceptions in Apex? (Choose three.)

Answer options

Correct answer: A, B, D

Explanation

The correct answer includes A, B, and D because a custom exception must extend the Exception class, can implement interfaces, and should be named with an 'Exception' suffix. Option C is incorrect because a custom exception can indeed have member variables and methods, and option E is also wrong as custom exceptions must directly extend the Exception class.