mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题
This commit is contained in:
@@ -143,7 +143,7 @@ abstract class Paginator
|
||||
public function total()
|
||||
{
|
||||
if ($this->simple) {
|
||||
throw new \Exception('简洁模式下不能获取数据总数');
|
||||
throw new \DomainException('简洁模式下不能获取数据总数');
|
||||
}
|
||||
return $this->total;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ abstract class Paginator
|
||||
public function lastPage()
|
||||
{
|
||||
if ($this->simple) {
|
||||
throw new \Exception('简洁模式下不能获取最后一页');
|
||||
throw new \DomainException('简洁模式下不能获取最后一页');
|
||||
}
|
||||
return $this->lastPage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user