yii\base\ErrorHandler::handleHhvmError PHP Method

handleHhvmError() public method

This method is used as a HHVM error handler. It will store exception that will be used in fatal error handler
Since: 2.0.6
public handleHhvmError ( integer $code, string $message, string $file, integer $line, mixed $context, mixed $backtrace ) : boolean
$code integer the level of the error raised.
$message string the error message.
$file string the filename that the error was raised in.
$line integer the line number the error was raised at.
$context mixed
$backtrace mixed trace of error
return boolean whether the normal error handler continues.
    public function handleHhvmError($code, $message, $file, $line, $context, $backtrace)
    {
        if ($this->handleError($code, $message, $file, $line)) {
            return true;
        }
        if (E_ERROR & $code) {
            $exception = new ErrorException($message, $code, $code, $file, $line);
            $ref = new \ReflectionProperty('\\Exception', 'trace');
            $ref->setAccessible(true);
            $ref->setValue($exception, $backtrace);
            $this->_hhvmException = $exception;
        }
        return false;
    }