src/mg/Ding/Container/Impl/ContainerImpl.php
public function errorHandler($type, $message, $file, $line)
    {
        $msg = "$message in $file:$line";
        if ($msg == $this->_lastErrorMessage) {
            return;
        }
        $this->_lastErrorMessage = $msg;
        $this->_logger->error($msg);
        $this->eventDispatch(
            'dingError', new ErrorInfo($type, $message, $file, $line)
        );
        return true;
    }
public function errorHandler($type, $message, $file, $line)
    {
        $msg = "$message in $file:$line";
        if ($msg == $this->_lastErrorMessage) {
            return;
        }
        $this->_lastErrorMessage = $msg;
        $this->_logger->error($msg);
        $this->eventDispatch(
            'dingError', new ErrorInfo($type, $message, $file, $line)
        );
        return true;
    }
Called by php after set_error_handler()

@param integer $type
@param string $message
@param string $file
@param integer $line

@return true