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 Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments