ConnectionException.php 475 B

1234567891011121314151617181920
  1. <?php
  2. namespace Pheanstalk\Exception;
  3. /**
  4. * An exception relating to the client connection to the beanstalkd server.
  5. *
  6. * @author Paul Annesley
  7. */
  8. class ConnectionException extends ClientException
  9. {
  10. /**
  11. * @param int $errno The connection error code
  12. * @param string $errstr The connection error message
  13. */
  14. public function __construct($errno, $errstr)
  15. {
  16. parent::__construct(sprintf('Socket error %d: %s', $errno, $errstr));
  17. }
  18. }