handler- registerCallback function Exception callback new MyCustomErro

1
2
3
4
5
6
$handler->registerCallback(function(Exception $e) {
$callback = new MyCustomErrorCallback();
if($callback->canHandle($e)) {
return $clalback->handle($e);
}
});