ThrottleRequestsException.php 590B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Illuminate\Http\Exceptions;
  3. use Exception;
  4. use Symfony\Component\HttpKernel\Exception\HttpException;
  5. class ThrottleRequestsException extends HttpException
  6. {
  7. /**
  8. * Create a new exception instance.
  9. *
  10. * @param string|null $message
  11. * @param \Exception|null $previous
  12. * @param array $headers
  13. * @param int $code
  14. * @return void
  15. */
  16. public function __construct($message = null, Exception $previous = null, array $headers = [], $code = 0)
  17. {
  18. parent::__construct(429, $message, $previous, $headers, $code);
  19. }
  20. }