本文整理汇总了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);
}
示例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);
}
示例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);
}