Is it possible to handle unhandled exceptions within Aura Lightning Components client-side javascript code, without wrapping every piece of code in try/catch?
We have a few old LCs which operate on large data sets, and sometimes hit heap size or just normal javascript undefined errors (ex. [Cannot read property 'toLowerCase' of undefined]). When this happens, the user loses all the work done on the LC and they have to reload the page.
Hoping if the Aura framework provides a way to trigger a controller method (similar to aura:systemerror, which fires on server-side exceptions), where we can handle those errors, and save the current work in a draft.
Thanks.