-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
41 lines (28 loc) · 1.69 KB
/
Copy patherrors.go
File metadata and controls
41 lines (28 loc) · 1.69 KB
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
31
32
33
34
35
36
37
38
39
40
41
package msgpck
import "errors"
var (
// ErrUnexpectedEOF is returned when the input ends before a complete value
ErrUnexpectedEOF = errors.New("msgpck: unexpected end of input")
// ErrInvalidFormat is returned when an invalid format byte is encountered
ErrInvalidFormat = errors.New("msgpck: invalid format byte")
// ErrStringTooLong is returned when a string exceeds MaxStringLen
ErrStringTooLong = errors.New("msgpck: string exceeds maximum length")
// ErrBinaryTooLong is returned when binary data exceeds MaxBinaryLen
ErrBinaryTooLong = errors.New("msgpck: binary data exceeds maximum length")
// ErrArrayTooLong is returned when an array exceeds MaxArrayLen
ErrArrayTooLong = errors.New("msgpck: array exceeds maximum length")
// ErrMapTooLong is returned when a map exceeds MaxMapLen
ErrMapTooLong = errors.New("msgpck: map exceeds maximum length")
// ErrExtTooLong is returned when ext data exceeds MaxExtLen
ErrExtTooLong = errors.New("msgpck: ext data exceeds maximum length")
// ErrMaxDepthExceeded is returned when nesting exceeds MaxDepth
ErrMaxDepthExceeded = errors.New("msgpck: maximum nesting depth exceeded")
// ErrTypeMismatch is returned when decoding into an incompatible type
ErrTypeMismatch = errors.New("msgpck: type mismatch")
// ErrNotPointer is returned when DecodeStruct is called with a non-pointer
ErrNotPointer = errors.New("msgpck: decode target must be a pointer")
// ErrNotStruct is returned when DecodeStruct is called with a non-struct pointer
ErrNotStruct = errors.New("msgpck: decode target must be a pointer to struct")
// ErrUnsupportedType is returned when encoding an unsupported Go type
ErrUnsupportedType = errors.New("msgpck: unsupported type")
)