forked from mtusi2026/mtusi2026lab3
Перенести актуальную lab2 как базу lab3
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab3/internal/store"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrUnavailable preserves the dependency failure category across service boundaries.
|
||||
ErrUnavailable = store.ErrUnavailable
|
||||
|
||||
// ErrInvalid indicates invalid operation input.
|
||||
ErrInvalid = errors.New("invalid request")
|
||||
// ErrUnauthorized indicates an unresolved current user.
|
||||
ErrUnauthorized = errors.New("unknown user identity")
|
||||
// ErrNotFound hides both absent and inaccessible resources.
|
||||
ErrNotFound = errors.New("resource not found")
|
||||
// ErrConflict indicates a duplicate username.
|
||||
ErrConflict = errors.New("username already exists")
|
||||
// ErrCapacity indicates exhausted storage capacity without eviction.
|
||||
ErrCapacity = errors.New("in-memory storage capacity reached")
|
||||
)
|
||||
Reference in New Issue
Block a user