NoSettingsFileExistsException.php 726 B

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