-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patherrors.go
More file actions
18 lines (16 loc) · 1.26 KB
/
errors.go
File metadata and controls
18 lines (16 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package kodr
import "errors"
var (
ErrCannotInvertGf256AdditiveIndentity = errors.New("additive identity of Gf(2^8) i.e. 0, doesn't have a multiplicative inverse")
ErrMatrixDimensionMismatch = errors.New("can't perform matrix multiplication")
ErrAllUsefulPiecesReceived = errors.New("no more pieces required for decoding")
ErrMoreUsefulPiecesRequired = errors.New("not enough pieces received yet to decode")
ErrCopyFailedDuringPieceConstruction = errors.New("failed to copy whole data before splitting into pieces")
ErrPieceCountMoreThanTotalBytes = errors.New("requested piece count > total bytes of original data")
ErrZeroPieceSize = errors.New("pieces can't be sized as zero byte")
ErrBadPieceCount = errors.New("minimum 2 pieces required for RLNC")
ErrCodedDataLengthMismatch = errors.New("coded data length != coded piece count x coded piece length")
ErrCodingVectorLengthMismatch = errors.New("coding vector length > coded piece length ( in total )")
ErrPieceNotDecodedYet = errors.New("piece not decoded yet, more pieces required")
ErrPieceOutOfBound = errors.New("requested piece index >= pieceCount ( pieces coded together )")
)