system.exception
return [
    'hooks' => [
        'system.exception' => function (Throwable $exception) {
            // your code goes here
        }
    ]
]Parameters
| Parameter | Type | 
|---|---|
| $exception | Throwable | 
return [
    'hooks' => [
        'system.exception' => function (Throwable $exception) {
            // your code goes here
        }
    ]
]| Parameter | Type | 
|---|---|
| $exception | Throwable |