function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TheRealistTheRealist 

In how many ways we can do exceptional handling?

Hi,
In how many ways it is possible to do exceptional handling ?
Alexander TsitsuraAlexander Tsitsura
Hi TheRealist

Please, read this article 
https://developer.salesforce.com/page/An_Introduction_to_Exception_Handling

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Alex
William TranWilliam Tran
There 2 general ways. 

1) Use the OOTB framework so you don't need to do much
2) Catch and handle the error yourself using the try/catch/finally blocks.

Thx