| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace addons\JoinPay\common\logic\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;
- }
- }
|