Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.go
More file actions
Latest commit
57 lines (44 loc) · 1.03 KB
/
Copy patherror.go
File metadata and controls
57 lines (44 loc) · 1.03 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package git
import (
"fmt"
"time"
)
typeErrExecTimeoutstruct {
Duration time.Duration
}
funcIsErrExecTimeout(errerror) bool {
_, ok:=err.(ErrExecTimeout)
returnok
}
func (errErrExecTimeout) Error() string {
returnfmt.Sprintf("execution is timeout [duration: %v]", err.Duration)
}
typeErrNotExiststruct {
IDstring
RelPathstring
}
funcIsErrNotExist(errerror) bool {
_, ok:=err.(ErrNotExist)
returnok
}
func (errErrNotExist) Error() string {
returnfmt.Sprintf("object does not exist [id: %s, rel_path: %s]", err.ID, err.RelPath)
}
typeErrUnsupportedVersionstruct {
Requiredstring
}
funcIsErrUnsupportedVersion(errerror) bool {
_, ok:=err.(ErrUnsupportedVersion)
returnok
}
func (errErrUnsupportedVersion) Error() string {
returnfmt.Sprintf("Operation requires higher version [required: %s]", err.Required)
}
typeErrNoMergeBasestruct{}
funcIsErrNoMergeBase(errerror) bool {
_, ok:=err.(ErrNoMergeBase)
returnok
}
func (errErrNoMergeBase) Error() string {
return"no merge based found"
}