SettingValueBadFormatException.php 702 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Mmoreram\GearmanBundle\Exceptions;
  3. use Exception;
  4. /**
  5. * GearmanBundle setting is not well formatted
  6. *
  7. * @author Marc Morera <yuhu@mmoreram.com>
  8. */
  9. class SettingValueBadFormatException extends Exception
  10. {
  11. /**
  12. * Construct method for Exception
  13. *
  14. * @param string $value Setting value bad formatted
  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 setting "' . $value . '" is not well formatted' . PHP_EOL;
  21. parent::__construct($message, $code, $previous);
  22. }
  23. }