. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Exceptions; use Exception; use Fisharebest\Webtrees\I18N; use function e; /** * Exception thrown when importing invalid GEDCOM data. */ class GedcomErrorException extends Exception { /** * @param string $gedcom */ public function __construct(string $gedcom) { $message = I18N::translate('Invalid GEDCOM record') . '
' . e($gedcom) . '
'; parent::__construct($message); } }