ExceptionHandle.php 469 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Widget;
  3. if (!defined('__TYPECHO_ROOT_DIR__')) {
  4. exit;
  5. }
  6. /**
  7. * 异常处理组件
  8. *
  9. * @author qining
  10. * @category typecho
  11. * @package Widget
  12. * @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
  13. * @license GNU General Public License 2.0
  14. */
  15. class ExceptionHandle extends Base
  16. {
  17. /**
  18. * 重载构造函数
  19. */
  20. public function execute()
  21. {
  22. Archive::allocWithAlias('404', 'type=404')->render();
  23. }
  24. }