-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherror.go
More file actions
26 lines (23 loc) · 688 Bytes
/
error.go
File metadata and controls
26 lines (23 loc) · 688 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
package p0d
const refused string = "connection refused"
const reset string = "connection reset by peer"
const closed string = "use of closed network connection"
const eof string = "EOF"
const broken string = "broken pipe"
const dialtimeout string = "i/o timeout"
const buffer string = "no buffer space available"
const read string = "read"
const write string = "write"
const connection string = "connection"
var errorMapping = map[string]string{
read: read,
write: write,
connection: connection,
refused: connection,
reset: connection,
closed: connection,
eof: read,
broken: connection,
dialtimeout: connection,
buffer: read,
}