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