*/ class InvalidDsnException extends InvalidArgumentException { /** * @var string */ private $dsn; public function __construct(string $dsn, string $message) { $this->dsn = $dsn; parent::__construct(sprintf('%s (%s)', $message, $dsn)); } public function getDsn(): string { return $this->dsn; } }