Skip to content

ccproxy.scheduler.exceptions

ccproxy.scheduler.exceptions

Scheduler-specific exceptions.

SchedulerError

Bases: Exception

Base exception for scheduler-related errors.

TaskRegistrationError

Bases: SchedulerError

Raised when task registration fails.

TaskNotFoundError

Bases: SchedulerError

Raised when attempting to access a task that doesn't exist.

TaskExecutionError

TaskExecutionError(task_name, original_error)

Bases: SchedulerError

Raised when task execution encounters an error.

Source code in ccproxy/scheduler/exceptions.py
def __init__(self, task_name: str, original_error: Exception):
    self.task_name = task_name
    self.original_error = original_error
    super().__init__(f"Task '{task_name}' execution failed: {original_error}")

SchedulerShutdownError

Bases: SchedulerError

Raised when scheduler shutdown encounters an error.