Files
ratatoskr-go/internal/worker/errors.go
2026-08-15 09:14:34 +05:00

21 lines
661 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package worker
import "errors"
// Классы ошибок W1W5.
var (
// W1 — ошибка опроса БД.
ErrPoll = errors.New("W1: poll error")
// W2 — задача в невалидном статусе.
ErrLaunch = errors.New("W2: launch error")
// W3 — ошибка создания/обновления трассы.
ErrTrace = errors.New("W3: trace error")
// W4 — ошибка обновления статуса задачи.
ErrUpdate = errors.New("W4: update error")
// W5 — превышена параллельность, задача пропущена.
ErrConcurrencyLimit = errors.New("W5: concurrency limit")
)