__init__.py 406 B

123456789101112
  1. class SchedulerAlreadyRunningError(Exception):
  2. """Raised when attempting to start or configure the scheduler when it's already running."""
  3. def __str__(self):
  4. return 'Scheduler is already running'
  5. class SchedulerNotRunningError(Exception):
  6. """Raised when attempting to shutdown the scheduler when it's not running."""
  7. def __str__(self):
  8. return 'Scheduler is not running'