GatewayException.php 501 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Yansongda\Pay\Exceptions;
  3. class GatewayException extends Exception
  4. {
  5. /**
  6. * error raw data.
  7. *
  8. * @var array
  9. */
  10. public $raw = [];
  11. /**
  12. * [__construct description].
  13. *
  14. * @author JasonYan <me@yansongda.cn>
  15. *
  16. * @param string $message
  17. * @param string|int $code
  18. */
  19. public function __construct($message, $code, $raw = [])
  20. {
  21. parent::__construct($message, intval($code));
  22. $this->raw = $raw;
  23. }
  24. }