当前位置: 首页>>代码示例>>PHP>>正文


PHP add::handle_error方法代码示例

本文整理汇总了PHP中add::handle_error方法的典型用法代码示例。如果您正苦于以下问题:PHP add::handle_error方法的具体用法?PHP add::handle_error怎么用?PHP add::handle_error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在add的用法示例。


在下文中一共展示了add::handle_error方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_exception

 /**
  * Print the exception
  *
  * @since ADD MVC 0.7
  */
 public function print_exception()
 {
     add::handle_error(E_USER_ERROR, $this->getMessage(), $this->getFile(), $this->getLine(), $this->data);
 }
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:9,代码来源:e_add.class.php

示例2: handle_error

/**
 * handle_error()
 * callback function for handling trigger_error() errors
 *
 * @param int  $errno contains the level of the error raised, as an integer.
 * @param string $errstr contains the error message, as a string.
 * @param string $errfile contains the filename that the error was raised in, as a string.
 * @param int $errline contains the line number the error was raised at, as an integer.
 * @param array $errcontext an array that points to the active symbol table at the point the error occurred. In other words, errcontext will contain an array of every variable that existed in the scope the error was triggered in. User error handler must not modify error context.
 *
 * @see http://www.php.net/manual/en/function.set-error-handler.php
 * @version 1.0
 */
function handle_error($errno, $errstr, $errfile = NULL, $errline = NULL, $errcontext = NULL)
{
    return add::handle_error($errno, $errstr, $errfile, $errline, $errcontext);
}
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:17,代码来源:common.functions.php

示例3: handle_error

/**
 * handle_error()
 * callback function for handling trigger_error() errors
 *
 * @param int  $errno contains the level of the error raised, as an integer.
 * @param string $errstr contains the error message, as a string.
 * @param string $errfile contains the filename that the error was raised in, as a string.
 * @param int $errline contains the line number the error was raised at, as an integer.
 * @param array $errcontext an array that points to the active symbol table at the point the error occurred. In other words, errcontext will contain an array of every variable that existed in the scope the error was triggered in. User error handler must not modify error context.
 *
 * @see http://www.php.net/manual/en/function.set-error-handler.php
 * @version 1.0
 */
function handle_error($errno, $errstr, $errfile = NULL, $errline = NULL, $errcontext = NULL)
{
    trigger_error("Deprecated handle_error function", E_USER_DEPRECATED);
    return add::handle_error($errno, $errstr, $errfile, $errline, $errcontext);
}
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:18,代码来源:common.functions.php


注:本文中的add::handle_error方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。