[更新]修改基础异常类

This commit is contained in:
Anyon 2018-02-02 19:47:23 +08:00
parent 43041eb988
commit b9dfb8665f
4 changed files with 3 additions and 55 deletions

View File

@ -15,11 +15,10 @@
namespace WeChat\Exceptions; namespace WeChat\Exceptions;
/** /**
* 参数异常 * 接口参数异常
* Class InvalidArgumentException * Class InvalidArgumentException
* @package WeChat * @package WeChat
*/ */
class InvalidArgumentException extends \InvalidArgumentException class InvalidArgumentException extends \InvalidArgumentException
{ {
} }

View File

@ -15,27 +15,10 @@
namespace WeChat\Exceptions; namespace WeChat\Exceptions;
/** /**
* 返回异常 * 加密解密异常
* Class InvalidResponseException * Class InvalidResponseException
* @package WeChat * @package WeChat
*/ */
class InvalidDecryptException extends \Exception class InvalidDecryptException extends \Exception
{ {
/**
* @var array
*/
public $raw = [];
/**
* InvalidDecryptException constructor.
* @param string $message
* @param integer $code
* @param array $raw
*/
public function __construct($message, $code, $raw = [])
{
parent::__construct($message, intval($code));
$this->raw = $raw;
}
} }

View File

@ -15,27 +15,10 @@
namespace WeChat\Exceptions; namespace WeChat\Exceptions;
/** /**
* 返回异常 * 接口请求返回异常
* Class InvalidResponseException * Class InvalidResponseException
* @package WeChat * @package WeChat
*/ */
class InvalidResponseException extends \Exception class InvalidResponseException extends \Exception
{ {
/**
* @var array
*/
public $raw = [];
/**
* InvalidResponseException constructor.
* @param string $message
* @param integer $code
* @param array $raw
*/
public function __construct($message, $code, $raw = [])
{
parent::__construct($message, intval($code));
$this->raw = $raw;
}
} }

View File

@ -22,21 +22,4 @@ namespace WeChat\Exceptions;
class LocalCacheException extends \Exception class LocalCacheException extends \Exception
{ {
/**
* @var array
*/
public $raw = [];
/**
* InvalidResponseException constructor.
* @param string $message
* @param integer $code
* @param array $raw
*/
public function __construct($message, $code, $raw = [])
{
parent::__construct($message, intval($code));
$this->raw = $raw;
}
} }