Files
streamctl/pkg/streamcontrol/youtube/error.go
Dmitrii Okunev 1004082fe4
Some checks failed
rolling-release / build (push) Has been cancelled
rolling-release / rolling-release (push) Has been cancelled
Multiple updates
2025-07-12 23:11:42 +01:00

30 lines
465 B
Go

package youtube
import (
"fmt"
)
type ErrChatNotFound struct {
ChatID string
}
func (e ErrChatNotFound) Error() string {
return fmt.Sprintf("chat '%s' not found", e.ChatID)
}
type ErrChatDisabled struct {
ChatID string
}
func (e ErrChatDisabled) Error() string {
return fmt.Sprintf("chat '%s' is disabled", e.ChatID)
}
type ErrChatEnded struct {
ChatID string
}
func (e ErrChatEnded) Error() string {
return fmt.Sprintf("chat '%s' ended", e.ChatID)
}