aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/PDOConnectionException.php
blob: 391db5cae88d520f6c052658133b84373b41d2d1 (plain)
1
2
3
4
5
6
7
8
9
10
<?php
declare(strict_types=1);

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);
	}
}