AuthorizeFailedException.php 349 B

12345678910111213141516171819
  1. <?php
  2. namespace Overtrue\Socialite\Exceptions;
  3. class AuthorizeFailedException extends Exception
  4. {
  5. public array $body;
  6. /**
  7. * @param string $message
  8. * @param array $body
  9. */
  10. public function __construct(string $message, $body)
  11. {
  12. parent::__construct($message, -1);
  13. $this->body = (array) $body;
  14. }
  15. }