mirror of
https://github.com/elyby/mojang-api.git
synced 2024-06-14 04:21:59 +05:30
22 lines
604 B
PHP
22 lines
604 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Ely\Mojang\Exception;
|
|
|
|
use GuzzleHttp\Exception\ClientException;
|
|
use Psr\Http\Message\RequestInterface;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
class TooManyRequestsException extends ClientException implements MojangApiException {
|
|
|
|
public function __construct(RequestInterface $request, ResponseInterface $response) {
|
|
parent::__construct(
|
|
'The request limit was exceeded. ' .
|
|
'Read the documentation for the method requested to find out which RPS is allowed.',
|
|
$request,
|
|
$response
|
|
);
|
|
}
|
|
|
|
}
|