SettingsNotLoadedException.php 675 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Mmoreramerino\GearmanBundle\Exceptions;
  3. /**
  4. * GearmanBundle has not already load settings file Exception
  5. *
  6. * @author Marc Morera <marc@ulabox.com>
  7. */
  8. class SettingsNotLoadedException extends \Exception
  9. {
  10. /**
  11. * Construct method for Exception
  12. *
  13. * @param string $message
  14. * @param integer $code
  15. * @param \Exception $previous
  16. */
  17. public function __construct($job, $code = 0, \Exception $previous = null) {
  18. $message = 'GearmanBundle has not already loaded settings from file. Be sure to call load() before use this call.' . PHP_EOL;
  19. parent::__construct($message, $code, $previous);
  20. }
  21. }