From d638ba3cb5e89a9a673fcdb53df1c967d9d9b7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BA=A6=E5=BD=93=E8=8B=97=E5=84=BF?= Date: Mon, 1 Feb 2016 00:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0NotFound=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/exception/NotFoundException.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 library/think/exception/NotFoundException.php diff --git a/library/think/exception/NotFoundException.php b/library/think/exception/NotFoundException.php new file mode 100644 index 00000000..06ae2e5d --- /dev/null +++ b/library/think/exception/NotFoundException.php @@ -0,0 +1,27 @@ + +// +---------------------------------------------------------------------- + +namespace think\exception; + +use think\Exception; + +/** + * Database相关异常处理类 + */ +class NotFoundException extends Exception +{ + /** + * 系统异常后发送给客户端的HTTP Status + * @var integer + */ + protected $httpStatus = 404; + +}