[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Event/ -> ErrorEvent.php (source)

   1  <?php
   2  namespace GuzzleHttp\Event;
   3  
   4  use GuzzleHttp\Exception\RequestException;
   5  
   6  /**
   7   * Event emitted when an error occurs while sending a request.
   8   *
   9   * This event MAY be emitted multiple times. You MAY intercept the exception
  10   * and inject a response into the event to rescue the request using the
  11   * intercept() method of the event.
  12   *
  13   * This event allows the request to be retried using the "retry" method of the
  14   * event.
  15   */
  16  class ErrorEvent extends AbstractRetryableEvent
  17  {
  18      /**
  19       * Get the exception that was encountered
  20       *
  21       * @return RequestException
  22       */
  23      public function getException()
  24      {
  25          return $this->transaction->exception;
  26      }
  27  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1