replace Exception on GeneralException
This commit is contained in:
@ -40,7 +40,7 @@ class Db
|
||||
}
|
||||
|
||||
if (!is_array($config)) {
|
||||
throw new Exception('Connection parameters must be an array');
|
||||
throw new GeneralException('Connection parameters must be an array');
|
||||
}
|
||||
|
||||
$driver = 'MySQLiDriver';
|
||||
@ -52,7 +52,7 @@ class Db
|
||||
$connection = new $driver($config);
|
||||
|
||||
if (!$connection instanceof DbDriver) {
|
||||
throw new Exception('Database driver must extends DbDriver');
|
||||
throw new GeneralException('Database driver must extends DbDriver');
|
||||
}
|
||||
self::$connections[$name] = $connection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user