forked from treeverse/lakeFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
29 lines (26 loc) · 1.29 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
26
27
28
29
package catalog
import (
"errors"
"fmt"
"github.com/treeverse/lakefs/db"
)
var (
ErrFeatureNotSupported = errors.New("feature not supported")
ErrOperationNotPermitted = errors.New("operation not permitted")
ErrInvalidLockValue = errors.New("invalid lock value")
ErrNothingToCommit = errors.New("nothing to commit")
ErrNoDifferenceWasFound = errors.New("no difference was found")
ErrConflictFound = errors.New("conflict found")
ErrUnsupportedRelation = errors.New("unsupported relation")
ErrUnsupportedDelimiter = errors.New("unsupported delimiter")
ErrInvalidReference = errors.New("invalid reference")
ErrBranchNotFound = fmt.Errorf("branch %w", db.ErrNotFound)
ErrCommitNotFound = fmt.Errorf("commit %w", db.ErrNotFound)
ErrRepositoryNotFound = fmt.Errorf("repository %w", db.ErrNotFound)
ErrMultipartUploadNotFound = fmt.Errorf("multipart upload %w", db.ErrNotFound)
ErrEntryNotFound = fmt.Errorf("entry %w", db.ErrNotFound)
ErrByteSliceTypeAssertion = errors.New("type assertion to []byte failed")
ErrInvalidMetadataSrcFormat = errors.New("invalid metadata src format")
ErrUnexpected = errors.New("unexpected error")
ErrReadEntryTimeout = errors.New("read entry timeout")
)