-
Notifications
You must be signed in to change notification settings - Fork 5
/
errors.go
26 lines (24 loc) · 1.03 KB
/
errors.go
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 transport
import (
"errors"
)
var (
// ErrClosedError ErrClosedError
ErrClosedError = errors.New("Closed")
// ErrOperationTimeoutError ErrOperationTimeoutError
ErrOperationTimeoutError = errors.New("OperationTimeoutError: timeout")
// ErrBufferClosedError ErrBufferClosedError
ErrBufferClosedError = errors.New("BufferClosedError:chan is closed")
// ErrReadBufferClosedError ErrReadBufferClosedError
ErrReadBufferClosedError = errors.New("ReadBufferClosedError:chan is closed")
// ErrWriteBufferClosedError ErrWriteBufferClosedError
ErrWriteBufferClosedError = errors.New("WriteBufferClosedError:chan is closed")
// ErrMaxBytesError ErrMaxBytesError
ErrMaxBytesError = errors.New("MaxBytesError:message is larger than byte buffer")
// ErrInputNullError ErrInputNullError
ErrInputNullError = errors.New("InputError:plugin is null")
// ErrOutputNullError ErrOutputNullError
ErrOutputNullError = errors.New("OutputError:plugin is null")
// ErrUnknownError ErrUnknownError
ErrUnknownError = errors.New("UnknownError:unknow error")
)