WorkerNameTooLongException.php 862 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Gearman Bundle for Symfony2
  4. *
  5. * @author Marc Morera <yuhu@mmoreram.com>
  6. * @since 2013
  7. */
  8. namespace Mmoreram\GearmanBundle\Exceptions;
  9. use Mmoreram\GearmanBundle\Exceptions\Abstracts\AbstractGearmanException;
  10. use Exception;
  11. /**
  12. * GearmanBundle can't find worker specified as Gearman format Exception
  13. */
  14. class WorkerNameTooLongException extends AbstractGearmanException
  15. {
  16. /**
  17. * Construction method
  18. *
  19. * @param string $message Message
  20. * @param int $code Code
  21. * @param Exception $previous Previous
  22. */
  23. public function __construct($message = null, $code = 0, Exception $previous = null)
  24. {
  25. $message = 'The function name + unique id cannot exceed 114 bytes. You can change workers name or set a shortly unique key';
  26. parent::__construct($message, $code, $previous);
  27. }
  28. }