-
Notifications
You must be signed in to change notification settings - Fork 361
/
errors.go
25 lines (22 loc) · 1.01 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package catalog
import (
"errors"
"fmt"
"github.com/treeverse/lakefs/pkg/db"
)
var (
ErrInvalid = errors.New("validation error")
ErrInvalidType = fmt.Errorf("invalid type: %w", ErrInvalid)
ErrRequiredValue = fmt.Errorf("required value: %w", ErrInvalid)
ErrPathRequiredValue = fmt.Errorf("missing path: %w", ErrRequiredValue)
ErrInvalidValue = fmt.Errorf("invalid value: %w", ErrInvalid)
ErrNotFound = db.ErrNotFound
ErrInvalidMetadataSrcFormat = errors.New("invalid metadata src format")
ErrExpired = errors.New("expired from storage")
ErrFeatureNotSupported = errors.New("feature not supported")
ErrBranchNotFound = fmt.Errorf("branch %w", ErrNotFound)
ErrRepositoryNotFound = fmt.Errorf("repository %w", ErrNotFound)
ErrNoDifferenceWasFound = errors.New("no difference was found")
ErrConflictFound = errors.New("conflict found")
ErrInvalidRef = errors.New("invalid ref")
)