-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.go
More file actions
30 lines (23 loc) · 988 Bytes
/
error.go
File metadata and controls
30 lines (23 loc) · 988 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
26
27
28
29
30
package compose
import (
"errors"
"github.com/gogpu/compose/internal/conn"
)
// Sentinel errors returned by Server and Client.
var (
// ErrClosed is returned when an operation is attempted on a closed
// Server or Client.
ErrClosed = errors.New("compose: server/client closed")
// ErrNotAccepted is returned by Dial when the compositor rejects the
// connection (e.g., due to capacity limits or policy).
ErrNotAccepted = errors.New("compose: connection not accepted by compositor")
// ErrModuleNotFound is returned by RequestFrame when the specified
// module ID does not exist in the server's module table.
ErrModuleNotFound = errors.New("compose: module not found")
// ErrMaxModules is returned when the server cannot accept a new module
// because the maximum module count has been reached.
ErrMaxModules = conn.ErrMaxModules
// ErrNameTaken is returned when a module with the same name is already
// connected to the server.
ErrNameTaken = conn.ErrNameTaken
)