💬 In plain words: Let exceptions bubble up to one central place. Catch them there, and permanently write the error to a custom Log__c record via a Platform Event so the log survives a database rollback. An empty catch block is how errors vanish without a trace—and haunt you in production. 📌 Real-Life Example: The Silent Integration Failure Imagine an integration that fails silently for a week because someone wrote catch(Exception e){} . To fix this, catch the error once at the top level and publish an Error_Event__e carrying the message and record ID. A subscriber then inserts an Integration_Log__c . Now, even if the main transaction rolls back, the rollback can't erase the evidence.
Lightning Web Components