[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

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

   1  <?php
   2  namespace GuzzleHttp\Event;
   3  
   4  /**
   5   * A terminal event that is emitted when a request transaction has ended.
   6   *
   7   * This event is emitted for both successful responses and responses that
   8   * encountered an exception. You need to check if an exception is present
   9   * in your listener to know the difference.
  10   *
  11   * You MAY intercept the response associated with the event if needed, but keep
  12   * in mind that the "complete" event will not be triggered as a result.
  13   */
  14  class EndEvent extends AbstractTransferEvent
  15  {
  16      /**
  17       * Get the exception that was encountered (if any).
  18       *
  19       * This method should be used to check if the request was sent successfully
  20       * or if it encountered errors.
  21       *
  22       * @return \Exception|null
  23       */
  24      public function getException()
  25      {
  26          return $this->transaction->exception;
  27      }
  28  }


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