CustomException is a user-defined Apex exception class. You can create it by extending the built-in Exception class.
AuraHandledException specific exception type provided by Salesforce, designed to handle user-friendly error messages in Lightning Components (Aura or LWC).