异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题

This commit is contained in:
thinkphp
2016-06-12 16:35:42 +08:00
parent 659900ab91
commit b10635e22e
33 changed files with 236 additions and 79 deletions

View File

@@ -32,13 +32,13 @@ class Sqlite implements CacheInterface
/**
* 架构函数
* @param array $options 缓存参数
* @throws Exception
* @throws \BadFunctionCallException
* @access public
*/
public function __construct($options = [])
{
if (!extension_loaded('sqlite')) {
throw new Exception('_NOT_SUPPERT_:sqlite');
throw new \BadFunctionCallException('not support sqlite');
}
if (!empty($options)) {
$this->options = array_merge($this->options, $options);