You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PayException.php 492B

1234567891011121314151617181920212223
  1. <?php
  2. namespace crmeb\exceptions;
  3. /**
  4. * Class PayException
  5. */
  6. class PayException extends \RuntimeException
  7. {
  8. public function __construct($message = "", $code = 0, Throwable $previous = null)
  9. {
  10. if (is_array($message)) {
  11. $errInfo = $message;
  12. $message = $errInfo[1] ?? '未知错误';
  13. if ($code === 0) {
  14. $code = $errInfo[0] ?? 400;
  15. }
  16. }
  17. parent::__construct($message, $code, $previous);
  18. }
  19. }