protected function getAdditionalData(Html2PdfException $e)
    {
        $data = array();

        // read the error
        switch ($e->getCode()) {
            case HtmlParsingException::ERROR_CODE:
                /** @var HtmlParsingException $e */
                $data['invalid tag'] = $e->getInvalidTag();
                $data['html line'] = $e->getHtmlLine();
                break;

            case ImageException::ERROR_CODE:
                /** @var ImageException $e */
                $data['image src'] = $e->getImage();
                break;

            case LongSentenceException::ERROR_CODE:
                /** @var LongSentenceException $e */
                $data['sentence']  = $e->getSentence();
                $data['box width'] = $e->getWidthBox();
                $data['length']    = $e->getLength();
                break;

            case TableException::ERROR_CODE:
            case Html2PdfException::ERROR_CODE:
            default:
                break;
        }

        return $data;
    }