protected static function handleError(&$context) {
        static::$lastContext = $context;

        if (count($context['error'])) {
            if ($context['flags']['errorlog']) {
                error_log(implode("\n", $context['error']));
            }
            if ($context['flags']['exception']) {
                throw new \Exception(implode("\n", $context['error']));
            }
            return true;
        }
        return false;
    }
protected static function handleError(&$context) {
        static::$lastContext = $context;

        if (count($context['error'])) {
            if ($context['flags']['errorlog']) {
                error_log(implode("\n", $context['error']));
            }
            if ($context['flags']['exception']) {
                throw new \Exception(implode("\n", $context['error']));
            }
            return true;
        }
        return false;
    }
protected static function handleError ( & $ context ) { static :: $ lastContext = $ context ; if ( count ( $ context [ 'error' ] ) ) { if ( $ context [ 'flags' ] [ 'errorlog' ] ) { error_log ( implode ( "\n" , $ context [ 'error' ] ) ) ; } if ( $ context [ 'flags' ] [ 'exception' ] ) { throw new \ Exception ( implode ( "\n" , $ context [ 'error' ] ) ) ; } return true ; } return false ; }
Handle exists error and return error status.

@param array<string,array|string|integer> $context Current context of compiler progress.

@throws \Exception
@return boolean True when error detected

@expect false when input array('error' => array())
@expect true when input array('error' => array('some error'), 'flags' => array('errorlog' => 0, 'exception' => 0))
Handle exists error and return error status .