public function __construct($errors, \DOMDocument $document, $xmlInput) { $this->errors = $errors; $this->document = $document; $this->xmlInput = $xmlInput; parent::__construct($this->errorsToString($errors)); }
public function __construct() { parent::__construct('The given XML-String was empty'); }