public function attachErrorStrategy(AbstractErrorStrategy $strategy)
    {
        if ($strategy instanceof HtmlErrorStrategy) {
            $this->setDefaultErrorStrategy($strategy);

            return;
        }
        $this->strategies->attach($strategy);
    }