Browse Source

trigger_error when exception captured

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@52 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
akulikov 16 years ago
parent
commit
a0bfe0848e
  1. 9
      classes/MJException.class.php

9
classes/MJException.class.php

@ -1,12 +1,12 @@
<?php
/**
* Обработчик эксепшенов
* Обработчик эксепшенов
*
* @copyright
* @link
* @copyright
* @link
* @package Majestic
* @subpackage Core
* @since
* @since
* @version SVN: $Id$
* @filesource $URL$
*/
@ -17,6 +17,7 @@ class MJException extends Exception
public function terminate()
{
if (!DEBUG_ENABLE) {
trigger_error($this->getMessage());
throw new StaticPageException(500);
}

Loading…
Cancel
Save