aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/v0v1/server/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/v0v1/server/errors.go
parentresearch: Add dynamic pack resources (diff)
signatureNo signature
*: Remove
Diffstat (limited to 'network/protocol/v0v1/server/errors.go')
-rw-r--r--network/protocol/v0v1/server/errors.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/network/protocol/v0v1/server/errors.go b/network/protocol/v0v1/server/errors.go
deleted file mode 100644
index 6a456234..00000000
--- a/network/protocol/v0v1/server/errors.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package server
-
-// ProtocolError reports one malformed or unsupported protocol input.
-type ProtocolError struct {
- Reason string
-}
-
-// Error returns the formatted error string.
-func (err *ProtocolError) Error() string {
- return "protocol/v0v1/server: protocol error: " + err.Reason
-}
-
-// ErrUnexpectedPacket reports one unexpected pkt-line control packet.
-var ErrUnexpectedPacket = &ProtocolError{Reason: "unexpected control packet"}
-
-// ErrSideBandNotEnabled reports one attempt to write sideband frames without a
-// negotiated side-band-64k session.
-var ErrSideBandNotEnabled = &ProtocolError{Reason: "side-band-64k not enabled"}