"""
Custom exceptions for django-cronjob-utils.
"""


class CronJobError(Exception):
    """Base exception for all cronjob-related errors."""
    pass


class TaskNotFoundError(CronJobError):
    """Raised when a task is not found in the registry."""
    pass


class ConcurrentExecutionError(CronJobError):
    """Raised when attempting to run a task that is already running."""
    pass


class ValidationError(CronJobError):
    """Raised when task validation fails."""
    pass
