Great session, since the User is not obstructed with an ERROR but the Exception are logged, what is the proper method to inform the User of the failure?
Thanks to Apex Hours and Meera for this wonderful session. The video is very informative and full of demos related to real word scenarios. Is there any way we can get the ppt? That will be very helpful. Thanks again.
I think that there is a correction. We can throw standard built in exceptions. Please correct me if my understanding is wrong //Sample code CalloutException e = new CalloutException(); e.setMessage('This is a constructed exception!'); throw e;
@samir khan yes we can throw standard exception, but point is to log the exception in a custom object, so that we can view the database entry later. So we create a separate object. Major issue comes when the it is a dml exception, your business logic (like other insert update) are usually allOrNone so when that fail, your exception logs dml also fails.
@@70samirkhan yes,you are correct. We can trow standard exceptions. I created a generic custom Exception for throwing all kind of exception with a custom message which can be even accessed from flows.