Which statement can a developer use to throw a custom exception? A - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

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



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: Sep 17, 2020

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Apr 26, 2017

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

####
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

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