aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/sideband64k/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /network/protocol/sideband64k/errors.go
parentresearch: Add dynamic pack resources (diff)
signatureNo signature
*: Remove
Diffstat (limited to 'network/protocol/sideband64k/errors.go')
-rw-r--r--network/protocol/sideband64k/errors.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/network/protocol/sideband64k/errors.go b/network/protocol/sideband64k/errors.go
deleted file mode 100644
index 44e7c165..00000000
--- a/network/protocol/sideband64k/errors.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package sideband64k
-
-import "errors"
-
-var (
- // ErrTooLarge indicates a payload exceeds configured sideband data limits.
- ErrTooLarge = errors.New("sideband64k: payload too large")
- // ErrInvalidBand indicates a data frame has an invalid sideband designator.
- ErrInvalidBand = errors.New("sideband64k: invalid band designator")
-)
-
-// ProtocolError reports invalid side-band-64k framing.
-type ProtocolError struct {
- Reason string
-}
-
-func (e *ProtocolError) Error() string {
- if e == nil {
- return "<nil>"
- }
-
- if e.Reason == "" {
- return "sideband64k: protocol error"
- }
-
- return "sideband64k: protocol error: " + e.Reason
-}