JobDoesNotExistException.php 657 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Mmoreramerino\GearmanBundle\Exceptions;
  3. /**
  4. * GearmanBundle can't find job specified as Gearman format Exception
  5. *
  6. * @author Marc Morera <marc@ulabox.com>
  7. */
  8. class JobDoesNotExistException extends \Exception
  9. {
  10. /**
  11. * Construct method for Exception
  12. *
  13. * @param string $job Job name to be shown in Exception
  14. * @param integer $code
  15. * @param \Exception $previous
  16. */
  17. public function __construct($job, $code = 0, \Exception $previous = null) {
  18. $message = 'GearmanBundle can\'t find job with name ' . $job . PHP_EOL;
  19. parent::__construct($message, $code, $previous);
  20. }
  21. }