Files
ratatoskr-go/internal/app/errors.go

17 lines
519 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 app
import "errors"
var (
// A1 — не загрузился/невалиден конфиг
ErrConfig = errors.New("A1: config error")
// A2 — не открылась storage-БД
ErrDBOpen = errors.New("A2: db open error")
// A3 — Telegram-канал упал со смертельной ошибкой (Run вернул ошибку)
ErrChannelFatal = errors.New("A3: channel fatal error")
// A4 — проблемы при graceful shutdown
ErrShutdown = errors.New("A4: shutdown error")
)