aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/PDOConnectionException.php
blob: 2b015607eec560cd13fb065b55bf6a4a9c66626e (plain)
1
2
3
4
5
6
7
8
<?php
class Minz_PDOConnectionException extends Minz_Exception {
	public function __construct(string $error, string $user, int $code = self::ERROR) {
		$message = 'Access to database is denied for `' . $user . '`: ' . $error;

		parent::__construct ($message, $code);
	}
}