PPConnectionException.php 344 B

123456789101112131415161718
  1. <?php
  2. class PPConnectionException extends Exception
  3. {
  4. /**
  5. * The url that was being connected to when the exception occured
  6. * @var string
  7. */
  8. private $url;
  9. public function __construct($url, $message, $code = 0) {
  10. parent::__construct($message, $code);
  11. $this->url = $url;
  12. }
  13. public function getUrl() {
  14. return $this->url;
  15. }
  16. }