lightning-terminal/session/errors.go

22 lines
655 B
Go
Raw Permalink Normal View History

package session
import "errors"
var (
// ErrSessionNotFound is an error returned when we attempt to retrieve
// information about a session but it is not found.
ErrSessionNotFound = errors.New("session not found")
// ErrUnknownGroup is returned when an attempt is made to insert a
// session and link it to an existing group where the group is not
// known.
ErrUnknownGroup = errors.New("unknown group")
// ErrSessionsInGroupStillActive is returned when an attempt is made to
// insert a session and link it to a group that still has other active
// sessions.
ErrSessionsInGroupStillActive = errors.New(
"group has active sessions",
)
)