-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
25 lines (19 loc) · 726 Bytes
/
Copy patherrors.go
File metadata and controls
25 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package relay
import "errors"
// Common error sentinels. Every RELAY-conformant implementation must define
// these errors and wrap them so errors.Is returns true (see spec §5).
//
//fusa:req REQ-RELAY-012
var (
//fusa:req REQ-RELAY-008
ErrClosed = errors.New("relay: closed")
//fusa:req REQ-RELAY-009
ErrNotConnected = errors.New("relay: not connected")
//fusa:req REQ-RELAY-010
ErrTimeout = errors.New("relay: timeout")
//fusa:req REQ-RELAY-011
ErrPayloadTooLarge = errors.New("relay: payload too large")
)