| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace common\components\payment\joinpay\exceptions;
- /**
- * 自定义异常类
- * Class BizException
- * @package exceptions
- */
- class SDKException extends \Exception {
- const PARAM_ERROR = "10000";
- const BIZ_ERROR = "20000";
- private $bizCode;
- private $msg;
- function __construct(int $bizCode, string $msg) {
- parent::__construct();
- $this->bizCode = $bizCode;
- $this->msg = $msg;
- }
- /**
- * @return int
- */
- public function getBizCode()
- {
- return $this->bizCode;
- }
- /**
- * @entity int $bizCode
- */
- public function setBizCode($bizCode)
- {
- $this->bizCode = $bizCode;
- }
- /**
- * @return string
- */
- public function getMsg()
- {
- return $this->msg;
- }
- /**
- * @entity mixed $msg
- */
- public function setMsg($msg)
- {
- $this->msg = $msg;
- }
- }
|