-
Notifications
You must be signed in to change notification settings - Fork 2
/
errors.go
29 lines (20 loc) · 970 Bytes
/
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 crabfs
import "errors"
var (
// ErrInvalidPrivateKey an invalid private key was supplied
ErrInvalidPrivateKey = errors.New("Invalid private key")
// ErrInvalidRoot an invalid path was given
ErrInvalidRoot = errors.New("Invalid root path")
// ErrInvalidBlockSize an invalid block size was given
ErrInvalidBlockSize = errors.New("Invalid block size. Block size must be bigger than 0")
// ErrInvalidOffset an invalid path was given
ErrInvalidOffset = errors.New("Invalid offset")
// ErrBlockNotFound the requested block was not found
ErrBlockNotFound = errors.New("Block not found")
// ErrObjectNotFound the requested object was not found
ErrObjectNotFound = errors.New("Object not found")
// ErrFileLocked the requested file is locked
ErrFileLocked = errors.New("Request file is locked")
// ErrFileLockedNotOwned the requested file is not locked by this peer
ErrFileLockedNotOwned = errors.New("Request file is not locked by this peer")
)