InvalidDecryptException.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | WeChatDeveloper
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2023 ThinkAdmin [ thinkadmin.top ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // | 免责声明 ( https://thinkadmin.top/disclaimer )
  11. // +----------------------------------------------------------------------
  12. // | gitee 代码仓库:https://gitee.com/zoujingli/WeChatDeveloper
  13. // | github 代码仓库:https://github.com/zoujingli/WeChatDeveloper
  14. // +----------------------------------------------------------------------
  15. namespace WeChat\Exceptions;
  16. /**
  17. * 加密解密异常
  18. * Class InvalidResponseException
  19. * @package WeChat
  20. */
  21. class InvalidDecryptException extends \Exception
  22. {
  23. /**
  24. * @var array
  25. */
  26. public $raw = [];
  27. /**
  28. * InvalidDecryptException constructor.
  29. * @param string $message
  30. * @param integer $code
  31. * @param array $raw
  32. */
  33. public function __construct($message, $code = 0, $raw = [])
  34. {
  35. parent::__construct($message, intval($code));
  36. $this->raw = $raw;
  37. }
  38. }