errors.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package rtcp
  2. import "errors"
  3. var (
  4. errWrongMarshalSize = errors.New("rtcp: wrong marshal size")
  5. errInvalidTotalLost = errors.New("rtcp: invalid total lost count")
  6. errInvalidHeader = errors.New("rtcp: invalid header")
  7. errEmptyCompound = errors.New("rtcp: empty compound packet")
  8. errBadFirstPacket = errors.New("rtcp: first packet in compound must be SR or RR")
  9. errMissingCNAME = errors.New("rtcp: compound missing SourceDescription with CNAME")
  10. errPacketBeforeCNAME = errors.New("rtcp: feedback packet seen before CNAME")
  11. errTooManyReports = errors.New("rtcp: too many reports")
  12. errTooManyChunks = errors.New("rtcp: too many chunks")
  13. errTooManySources = errors.New("rtcp: too many sources")
  14. errPacketTooShort = errors.New("rtcp: packet too short")
  15. errWrongType = errors.New("rtcp: wrong packet type")
  16. errSDESTextTooLong = errors.New("rtcp: sdes must be < 255 octets long")
  17. errSDESMissingType = errors.New("rtcp: sdes item missing type")
  18. errReasonTooLong = errors.New("rtcp: reason must be < 255 octets long")
  19. errBadVersion = errors.New("rtcp: invalid packet version")
  20. errWrongPadding = errors.New("rtcp: invalid padding value")
  21. errWrongFeedbackType = errors.New("rtcp: wrong feedback message type")
  22. errWrongPayloadType = errors.New("rtcp: wrong payload type")
  23. errHeaderTooSmall = errors.New("rtcp: header length is too small")
  24. errSSRCMustBeZero = errors.New("rtcp: media SSRC must be 0")
  25. errMissingREMBidentifier = errors.New("missing REMB identifier")
  26. errSSRCNumAndLengthMismatch = errors.New("SSRC num and length do not match")
  27. errInvalidSizeOrStartIndex = errors.New("invalid size or startIndex")
  28. errInvalidBitrate = errors.New("invalid bitrate")
  29. errWrongChunkType = errors.New("rtcp: wrong chunk type")
  30. errBadStructMemberType = errors.New("rtcp: struct contains unexpected member type")
  31. errBadReadParameter = errors.New("rtcp: cannot read into non-pointer")
  32. )