2020-01-21 17:18:46 -05:00
|
|
|
package model
|
|
|
|
|
|
2026-09-14 22:46:21 -04:00
|
|
|
import (
|
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
|
|
"github.com/deluan/rest"
|
|
|
|
|
)
|
2020-01-21 17:18:46 -05:00
|
|
|
|
|
|
|
|
var (
|
2026-09-14 22:46:21 -04:00
|
|
|
ErrNotFound = rest.ErrNotFound
|
2026-08-19 08:49:15 -04:00
|
|
|
ErrInvalidAuth = errors.New("invalid authentication")
|
2026-09-14 22:46:21 -04:00
|
|
|
ErrNotAuthorized = rest.ErrPermissionDenied
|
2026-08-19 08:49:15 -04:00
|
|
|
ErrExpired = errors.New("access expired")
|
|
|
|
|
ErrNotAvailable = errors.New("functionality not available")
|
|
|
|
|
ErrValidation = errors.New("validation error")
|
2026-08-19 08:47:53 -04:00
|
|
|
ErrPlaylistNotEditable = errors.New("playlist tracks are not editable")
|
2026-11-16 16:23:01 -05:00
|
|
|
ErrIncompleteQueue = errors.New("could not load all play queue tracks")
|
2020-01-21 17:18:46 -05:00
|
|
|
)
|