aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-11 00:00:00 +0000
committerGravatar Runxi Yu2025-11-13 00:00:00 +0000
commit15855e3249754ab7dc07183c9383f8a8e8c26af2 (patch)
tree83b32bdd63f7e672152f07d89268e9b268d1f3f5 /errors.go
signature
Initial commit
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/errors.go b/errors.go
new file mode 100644
index 00000000..675586f5
--- /dev/null
+++ b/errors.go
@@ -0,0 +1,12 @@
+package furgit
+
+import "errors"
+
+var (
+ // ErrInvalidObject indicates malformed serialized data.
+ ErrInvalidObject = errors.New("furgit: invalid object encoding")
+ // ErrInvalidRef indicates malformed refs.
+ ErrInvalidRef = errors.New("furgit: invalid ref")
+ // ErrNotFound indicates missing refs/objects.
+ ErrNotFound = errors.New("furgit: not found")
+)