What is the correct way for the developer to declare a class that can be used as an exception?

A developer is tasked with performing a complex validation using Apex as part of advanced business logic. certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.

What is the correct way for the developer to declare a class that can be used as an exception?
A . public class PurchaseOrderException implements Exception ()
B . public class PurchaseOrderException extends Exception ()
C . public class PurchaseOrder implements Exception ()
D . public class PurchaseOrder extends Exception ()

Answer: B

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments