Throw better Exceptions
This commit is contained in:
@@ -52,7 +52,7 @@ class SQLite extends Connector {
|
||||
return new PDO('sqlite:'.$config['database'], null, null, $options);
|
||||
}
|
||||
|
||||
throw new \Exception("SQLite database [{$config['database']}] could not be found.");
|
||||
throw new \OutOfBoundsException("SQLite database [{$config['database']}] could not be found.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user