本文整理汇总了PHP中MWExceptionHandler::handle方法的典型用法代码示例。如果您正苦于以下问题:PHP MWExceptionHandler::handle方法的具体用法?PHP MWExceptionHandler::handle怎么用?PHP MWExceptionHandler::handle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MWExceptionHandler
的用法示例。
在下文中一共展示了MWExceptionHandler::handle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
/**
* Run the current MediaWiki instance
* index.php just calls this
*/
public function run()
{
try {
$this->checkMaxLag();
$this->main();
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}
$this->triggerJobs();
$this->restInPeace();
} catch (Exception $e) {
MWExceptionHandler::handle($e);
}
}
示例2: run
/**
* Run the current MediaWiki instance
* index.php just calls this
*/
public function run()
{
try {
$this->checkMaxLag();
$this->main();
$this->restInPeace();
} catch (Exception $e) {
MWExceptionHandler::handle($e);
}
}
示例3: run
/**
* Run the current MediaWiki instance
* index.php just calls this
*/
public function run()
{
try {
$this->checkMaxLag();
try {
$this->main();
} catch (ErrorPageError $e) {
// Bug 62091: while exceptions are convenient to bubble up GUI errors,
// they are not internal application faults. As with normal requests, this
// should commit, print the output, do deferred updates, jobs, and profiling.
wfGetLBFactory()->commitMasterChanges();
$e->report();
// display the GUI error
}
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}
$this->triggerJobs();
$this->restInPeace();
} catch (Exception $e) {
MWExceptionHandler::handle($e);
}
}