GatewayException.php 444 B

1234567891011121314151617181920
  1. <?php
  2. namespace Yansongda\Pay\Exceptions;
  3. class GatewayException extends Exception
  4. {
  5. /**
  6. * Bootstrap.
  7. *
  8. * @author yansongda <me@yansonga.cn>
  9. *
  10. * @param string $message
  11. * @param array|string $raw
  12. * @param int $code
  13. */
  14. public function __construct($message, $raw = [], $code = self::ERROR_GATEWAY)
  15. {
  16. parent::__construct('ERROR_GATEWAY: '.$message, $raw, $code);
  17. }
  18. }