aboutsummaryrefslogtreecommitdiff
path: root/format/sideband64k/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-10 13:28:59 +0800
committerGravatar Runxi Yu2026-03-10 13:28:59 +0800
commitaf08c84539f9353718604988ba27ae3c466860fc (patch)
tree0f1f2536f57af69b55ae06e78efbe26a7a0b3633 /format/sideband64k/errors.go
parentforgejo, github: Update issue templates (diff)
signatureNo signature
*: Move sideband64k and pktline to protocol/
Diffstat (limited to 'format/sideband64k/errors.go')
-rw-r--r--format/sideband64k/errors.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/format/sideband64k/errors.go b/format/sideband64k/errors.go
deleted file mode 100644
index 44e7c165..00000000
--- a/format/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
-}