Saturday, 29 May 2021

Exceptions that Can’t be Caught in apex

 These below exceptions are uncatchable, catch blocks, as well as finally blocks if any,

aren't executed.


1.System.LimitException

2.System.assert

3.license exceptions


Throws runtime exceptions if a governor limit has been exceeded, such as when the maximum number of SOQL queries issued has been exceeded.

Other examples are exceptions thrown when assertion statements fail (through System.assertmethods) or license exceptions.


No comments:

Post a Comment