This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.go
38 lines (30 loc) · 1.77 KB
/
error.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
27
28
29
30
31
32
33
34
35
36
37
38
package main
import "errors"
var (
ErrInvalidParam = errors.New("invalid parameter")
ErrNoEnoughData = errors.New("no enough Data")
ErrAtomNotFound = errors.New("atom not found")
ErrOutOfRange = errors.New("operating data out of range")
ErrRequestTooLarge = errors.New("request Data is too large")
ErrIncompleteBox = errors.New("incomplete box")
ErrUnsupportedSampleEntry = errors.New("unsupported sample entry ")
ErrInvalidAtomSize = errors.New("atom's size is invalid")
ErrNoMoreAtom = errors.New("there is no more atom")
ErrInvalidAtom = errors.New("the atom is bad")
ErrUnsupportedAtomType = errors.New("the atom isn't supported yet")
ErrInvalidSampleDescription = errors.New("the sample description is invalid")
ErrMoovNotParsed = errors.New("moov atom(movie header) is not parsed yet")
ErrIncompleteCryptoBox = errors.New("incomplete box of protectedInfo/protectedInfo ")
ErrUnsupportedSampleGroupType = errors.New("unsupported sampleToGroup type")
ErrUnsupportedVariableSampleGroupLength = errors.New("sampleToGroup entry is variable, unsupported currently")
ErrInvalidLengthOfSampleGroup = errors.New("length individual sampleToGroup entry is invalid")
ErrInvalidLengthOfIVInSampleGroup = errors.New("in cenc sample group entry, the length of (const)IV is not 8 or 16")
ErrNotFoundTrack = errors.New("not found the trak information in moov")
ErrNoImplement = errors.New("function parse has not been implement")
)
var (
ErrEof = errors.New("EOF")
ErrUnexpectedEof = errors.New("unexpected EOF")
ErrTooLarge = errors.New("file is too large")
ErrOperationWithDraw = errors.New("operation cannot finish, withdrew")
)