docs($exceptionHandler): include better example
The previous example overwrote the `$exceptionHandler` in order to re-throw the error. This is not recommended, since it would leave the application in an inconsistent state and prevent proper clean-up. The new example simulates logging the error both to the backend and the console. Fixes #14704
G
Georgios Kalpakas committed
f82eba814b5fce0c8b541afc3eeadf612d8222f0
Parent: 96e34e3