for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nyholm\Dsn\Exception;
/**
* Base exception when DSN is not valid.
*
* @author Tobias Nyholm <[email protected]>
*/
class InvalidDsnException extends InvalidArgumentException
{
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;