Exception Classes Should Extend an Exception

< 1 min read

Impact Area

Manageability

Severity

High

Affected Element

Apex Class

Rule number #

SF-EXCEPTION-NOT-EXTEND-EXCEPTION

Impact  #

If a class named Exception does not inherit from the base class Exception or one of its subclasses, standard exception handling functionalities are lost.

Remediation #

Ensure that if you create an exception class, it inherits from the base class Exception or one of its subclasses.

Time to fix #

15 min

Updated on March 21, 2025
Was it helpful ?