初始上传
This commit is contained in:
18
extend/exception/AdminException.php
Executable file
18
extend/exception/AdminException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace core\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 平台管理端错误异常处理类
|
||||
*/
|
||||
class AdminException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
18
extend/exception/ApiException.php
Executable file
18
extend/exception/ApiException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace core\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 前端错误异常处理类
|
||||
*/
|
||||
class ApiException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
18
extend/exception/AuthException.php
Executable file
18
extend/exception/AuthException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace core\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 授权错误异常处理类
|
||||
*/
|
||||
class AuthException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
18
extend/exception/OrderException.php
Executable file
18
extend/exception/OrderException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace extend\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 订单错误异常处理类
|
||||
*/
|
||||
class OrderException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = -1, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
18
extend/exception/RefundException.php
Executable file
18
extend/exception/RefundException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace extend\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 订单退款错误异常处理类
|
||||
*/
|
||||
class RefundException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = -1, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
18
extend/exception/StockException.php
Executable file
18
extend/exception/StockException.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace extend\exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* 库存错误异常处理类
|
||||
*/
|
||||
class StockException extends RuntimeException
|
||||
{
|
||||
public function __construct($message = "", $code = -1, Throwable $previous = null)
|
||||
{
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user