SettingValueMissingException.php 687 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Mmoreram\GearmanBundle\Exceptions;
  3. use Exception;
  4. /**
  5. * GearmanBundle can't find setting value
  6. *
  7. * @author Marc Morera <yuhu@mmoreram.com>
  8. */
  9. class SettingValueMissingException extends Exception
  10. {
  11. /**
  12. * Construct method for Exception
  13. *
  14. * @param string $value Setting value not found
  15. * @param integer $code Code of exception
  16. * @param \Exception $previous Previos Exception
  17. */
  18. public function __construct($value, $code = 0, Exception $previous = null)
  19. {
  20. $message = 'GearmanBundle can\'t find setting value "' . $value . '"' . PHP_EOL;
  21. parent::__construct($message, $code, $previous);
  22. }
  23. }