TemplateNotFoundException.php 1022 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: yunwuxin <448901948@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace think\exception;
  12. class TemplateNotFoundException extends \RuntimeException
  13. {
  14. protected $template;
  15. public function __construct($message, $template = '')
  16. {
  17. $this->message = $message;
  18. $this->template = $template;
  19. }
  20. /**
  21. * 获取模板文件
  22. * @access public
  23. * @return string
  24. */
  25. public function getTemplate()
  26. {
  27. return $this->template;
  28. }
  29. }