no message
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
class AuthorizeFailedException extends Exception
|
||||
{
|
||||
public array $body;
|
||||
|
||||
#[Pure]
|
||||
public function __construct(string $message, mixed $body)
|
||||
{
|
||||
parent::__construct($message, -1);
|
||||
|
||||
$this->body = (array) $body;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
class BadRequestException extends Exception
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
class Exception extends \Exception
|
||||
{
|
||||
//
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions\FeiShu;
|
||||
|
||||
use Overtrue\Socialite\Exceptions;
|
||||
|
||||
class InvalidTicketException extends Exceptions\Exception
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
class InvalidArgumentException extends \InvalidArgumentException
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
class InvalidTokenException extends Exception
|
||||
{
|
||||
public string $token;
|
||||
|
||||
#[Pure]
|
||||
public function __construct(string $message, string $token)
|
||||
{
|
||||
parent::__construct($message, -1);
|
||||
|
||||
$this->token = $token;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Overtrue\Socialite\Exceptions;
|
||||
|
||||
class MethodDoesNotSupportException extends Exception
|
||||
{
|
||||
//
|
||||
}
|
||||
Reference in New Issue
Block a user