/**
  * 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);
 }
/**
 * 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);
}
/**
 * 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);
}