src/Exception/ExceptionFormatter.php
protected function buildTextMessage(Html2PdfException $e, $data)
    {
        $this->message = 'Html2Pdf Error ['.$e->getCode().']'."\n";
        $this->message.= $e->getMessage()."\n";
        $this->message.= ' File: '.$e->getFile()."\n";
        $this->message.= ' Line: '.$e->getLine()."\n";

        if (!empty($data)) {
            foreach ($data as $key => $value) {
                $this->message .= ' '.ucwords($key).': '.trim($value)."\n";
            }
        }
    }
protected function buildTextMessage(Html2PdfException $e, $data)
    {
        $this->message = 'Html2Pdf Error ['.$e->getCode().']'."\n";
        $this->message.= $e->getMessage()."\n";
        $this->message.= ' File: '.$e->getFile()."\n";
        $this->message.= ' Line: '.$e->getLine()."\n";

        if (!empty($data)) {
            foreach ($data as $key => $value) {
                $this->message .= ' '.ucwords($key).': '.trim($value)."\n";
            }
        }
    }
protected function buildTextMessage ( Html2PdfException $ e , $ data ) { $ this -> message = 'Html2Pdf Error [' . $ e -> getCode ( ) . ']' . "\n" ; $ this -> message .= $ e -> getMessage ( ) . "\n" ; $ this -> message .= ' File: ' . $ e -> getFile ( ) . "\n" ; $ this -> message .= ' Line: ' . $ e -> getLine ( ) . "\n" ; if ( ! empty ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ this -> message .= ' ' . ucwords ( $ key ) . ': ' . trim ( $ value ) . "\n" ; } } }
Build the text message

@param Html2PdfException $e    the exception of the error
@param array             $data additionnal data

@return void
Build the text message