ControllerExtendException.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeadmin快速开发前后端分离管理后台(PHP版)
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
  8. // | github下载:https://github.com/likeshop-github/likeadmin
  9. // | 访问官网:https://www.likeadmin.cn
  10. // | likeadmin团队 版权所有 拥有最终解释权
  11. // +----------------------------------------------------------------------
  12. // | author: likeadminTeam
  13. // +----------------------------------------------------------------------
  14. declare (strict_types=1);
  15. namespace app\common\exception;
  16. use think\Exception;
  17. /**
  18. * 控制器继承异常
  19. * Class ControllerExtendException
  20. * @package app\common\exception
  21. */
  22. class ControllerExtendException extends Exception
  23. {
  24. /**
  25. * 构造方法
  26. * @access public
  27. * @param string $message
  28. * @param string $model
  29. * @param array $config
  30. */
  31. public function __construct(string $message, string $model = '', array $config = [])
  32. {
  33. $this->message = '控制器需要继承模块的基础控制器:' . $message;
  34. $this->model = $model;
  35. }
  36. }