What are the Exception Methods in salesforce?



What are the Exception Methods in salesforce?..

Answer / Preeti Arora

Exception methods in Salesforce are methods that handle errors or exceptions that might occur during the execution of Apex code. Some common exception methods include: 1. try-catch block - used to catch and handle exceptions. 2. System.Assert - used for unit testing to verify that expected results match actual results. 3. System.Debug - used to log messages during debugging.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

What is wrapper class in apex salesforce ?

1 Answers  


What are Suggested Solutions?

1 Answers  


When should we build solutions declaratively instead of with code?

1 Answers  


What will happen if we undelete the deleted junction object?

1 Answers  


What are the custom settings? Types?

1 Answers  


what all the services that salesforce supports?

1 Answers   Cap Gemini,


Explain the flow of execution in the validation rule, triggers & workflows?

1 Answers  


What is difference between action support and action function?

1 Answers  


Are there any css (styles) provided by salesforce.com as part of the supported lightning components ? : salesforce lightning component

1 Answers  


Is it possible to change the existing data types of custom fields, if Yes please explanin?

1 Answers  


A custom object contains some records, now my requirement is to create the field in this object with the master-detail relationship. Can we create master-detail relationship in this case?

1 Answers  


What is PermissionSet?

1 Answers  


Categories