LightnCandy\LightnCandy::handleError PHP Метод

handleError() защищенный статический Метод

Handle exists error and return error status.
protected static handleError ( array\arraystring | integer> &$context ) : boolean
$context array\arraystring | integer>
Результат boolean True when error detected
    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;
    }