forked from panjf2000/gnet
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (16 loc) · 750 Bytes
/
Copy patherrors.go
File metadata and controls
20 lines (16 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package gnet
import "errors"
var (
// ErrInvalidFixedLength invalid fixed length.
ErrInvalidFixedLength = errors.New("invalid fixed length of bytes")
// ErrUnexpectedEOF no enough data to read.
ErrUnexpectedEOF = errors.New("there is no enough data")
// ErrDelimiterNotFound no such a delimiter.
ErrDelimiterNotFound = errors.New("there is no such a delimiter")
// ErrCRLFNotFound CRLF not found.
ErrCRLFNotFound = errors.New("there is no CRLF")
// ErrUnsupportedLength unsupported lengthFieldLength.
ErrUnsupportedLength = errors.New("unsupported lengthFieldLength. (expected: 1, 2, 3, 4, or 8)")
// ErrTooLessLength adjusted frame length is less than zero.
ErrTooLessLength = errors.New("adjusted frame length is less than zero")
)