. */ 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 InvalidGedcomEncodingException extends Exception { /** * InvalidGedcomEncodingException constructor. * * @param string $charset */ public function __construct(string $charset) { $message = I18N::translate('Error: converting GEDCOM files from %s encoding to UTF-8 encoding not currently supported.', e($charset)); parent::__construct($message); } }