<?phprequire_once 'class/package.exceptions.errors.php';$oErr = new exceptionErrorHandler(true);/** * OR direct call (class exceptionErrorHandler is static and can be used out of its context) *///set_error_handler(array ('exceptionErrorHandler', 'errorHandler'));$aWrong = 'bla';try { sort($aWrong);} catch(Exception $e) { echo $e;}?>