SettingValueMissingException.php 653 B

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