trigger_error when exception captured
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@52 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Обработчик эксепшенов
|
* Обработчик эксепшенов
|
||||||
*
|
*
|
||||||
* @copyright
|
* @copyright
|
||||||
* @link
|
* @link
|
||||||
* @package Majestic
|
* @package Majestic
|
||||||
* @subpackage Core
|
* @subpackage Core
|
||||||
* @since
|
* @since
|
||||||
* @version SVN: $Id$
|
* @version SVN: $Id$
|
||||||
* @filesource $URL$
|
* @filesource $URL$
|
||||||
*/
|
*/
|
||||||
@ -17,6 +17,7 @@ class MJException extends Exception
|
|||||||
public function terminate()
|
public function terminate()
|
||||||
{
|
{
|
||||||
if (!DEBUG_ENABLE) {
|
if (!DEBUG_ENABLE) {
|
||||||
|
trigger_error($this->getMessage());
|
||||||
throw new StaticPageException(500);
|
throw new StaticPageException(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user