RequestExceptionInterface.php 586 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Psr\Http\Client;
  3. use Psr\Http\Message\RequestInterface;
  4. /**
  5. * Exception for when a request failed.
  6. *
  7. * Examples:
  8. * - Request is invalid (e.g. method is missing)
  9. * - Runtime request errors (e.g. the body stream is not seekable)
  10. */
  11. interface RequestExceptionInterface extends ClientExceptionInterface
  12. {
  13. /**
  14. * Returns the request.
  15. *
  16. * The request object MAY be a different object from the one passed to ClientInterface::sendRequest()
  17. *
  18. * @return RequestInterface
  19. */
  20. public function getRequest(): RequestInterface;
  21. }