I second @DASPRiD - that's exactly why [ErrorHandler](https://github.com/zendframework/zf2/blob/master/library/Zend/Stdlib/ErrorHandler.php) was created, so I see no reason not to use.