A custom exception "RecordNotFoundException" is defined by - ProProfs Discuss
Topics
Products
Follow Us:

A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers



A. Throw new RecordNotFoundException(\problem occured\);
B. Throw new RecordNotFoundException();
C. throw RecordNotFoundException(\problem occured\);
D. Throw RecordNotFoundException();

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 13, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Apr 26, 2017

Throw new RecordNotFoundException("problem occured");
Throw new RecordNotFoundException();

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.