InvalidResponseException.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | WeChatDeveloper
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://think.ctolog.com
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | github开源项目:https://github.com/zoujingli/WeChatDeveloper
  12. // +----------------------------------------------------------------------
  13. namespace WeChat\Exceptions;
  14. /**
  15. * 返回异常
  16. * Class InvalidResponseException
  17. * @package WeChat
  18. */
  19. class InvalidResponseException extends \Exception
  20. {
  21. /**
  22. * @var array
  23. */
  24. public $raw = [];
  25. /**
  26. * InvalidResponseException constructor.
  27. * @param string $message
  28. * @param integer $code
  29. * @param array $raw
  30. */
  31. public function __construct($message, $code = 0, $raw = [])
  32. {
  33. parent::__construct($message, intval($code));
  34. $this->raw = $raw;
  35. }
  36. }