Esempio n. 1
0
 /**
  * @param Exception $exception
  */
 public function handle(Exception $exception)
 {
     $viewElement = new Piece_Unity_ViewElement();
     $viewElement->setElement('debugInfo', (object) array('exception' => $exception, 'source' => $this->_ripSource($exception->getFile(), $exception->getLine(), 10), 'trace' => preg_replace('/^#\\d+ /', '', explode("\n", $exception->getTraceAsString()))));
     Piece_Unity_Service_ExceptionHandler_Rendering_PHP::render(dirname(__FILE__) . '/../../../../../data/pear.piece-framework.com/Piece_Unity_Component_ExceptionHandler/' . basename(__FILE__), $viewElement);
 }
 /**
  * @param Exception $exception
  */
 public function handle(Exception $exception)
 {
     Piece_Unity_Service_ExceptionHandler_Rendering_PHP::render(dirname(__FILE__) . '/../../../../../data/pear.piece-framework.com/Piece_Unity_Component_ExceptionHandler/' . basename(__FILE__), new Piece_Unity_ViewElement());
 }