aboutsummaryrefslogtreecommitdiff
path: root/objectid/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-04 09:23:23 +0800
committerGravatar Runxi Yu2026-03-04 09:23:23 +0800
commit4905605124ab0ea390cdd65963d5a6a1a5258c45 (patch)
tree88e6a7f22354f8b4e1ce9e0fcc6f72499aa14d56 /objectid/errors.go
parentlint: Quick fix (diff)
signatureNo signature
objectid: File splitting
Diffstat (limited to 'objectid/errors.go')
-rw-r--r--objectid/errors.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/objectid/errors.go b/objectid/errors.go
new file mode 100644
index 00000000..8e604c44
--- /dev/null
+++ b/objectid/errors.go
@@ -0,0 +1,10 @@
+package objectid
+
+import "errors"
+
+var (
+ // ErrInvalidAlgorithm indicates an unsupported object ID algorithm.
+ ErrInvalidAlgorithm = errors.New("objectid: invalid algorithm")
+ // ErrInvalidObjectID indicates malformed object ID data.
+ ErrInvalidObjectID = errors.New("objectid: invalid object id")
+)