-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
31 lines (26 loc) · 1.08 KB
/
errors.go
File metadata and controls
31 lines (26 loc) · 1.08 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
package dvb
import "errors"
var (
ErrNotImplemented = errors.New("not implemented")
)
var (
ErrNilPacket = errors.New("nil packet")
ErrShortPacket = errors.New("short packet")
ErrIncorrectPESDataIdentifier = errors.New("incorrect PES data identifier")
ErrIncorrectSubtitleStreamID = errors.New("incorrect subtitle stream id")
ErrIncorrectEndOfPESDataFieldMarker = errors.New("incorrect end of pes data field marker")
)
var (
ErrBadPacketHeader = errors.New("bad packet header")
ErrJunkInPacket = errors.New("junk in packet")
)
var (
ErrNilBuffer = errors.New("nil buffer")
ErrShortBuffer = errors.New("short buffer")
ErrIncorrectSyncByte = errors.New("incorrect sync byte")
ErrIncorrectSegmentType = errors.New("incorrect segment type")
ErrIncorrectSegmentLength = errors.New("incorrect segment length")
ErrNoPageID = errors.New("no page id field")
ErrNoSegmentLength = errors.New("no segment length field")
ErrShortSegmentLength = errors.New("short segment length")
)