I want to catch all the errors and notify myself by email about them. redefined errorHandler
'errorHandler' => [ 'errorAction' => 'site/error', ] and 404 errors, but not fatal ones, pass through site / error. How to make it so that I could intercept all errors, including db exception, etc. Thank.