Debian Codegraph @

_rsrch/cidiface/errors.go

raw
1 package cid
2
3 import (
4 "errors"
5 )
6
7 var (
8 // ErrVarintBuffSmall means that a buffer passed to the cid parser was not
9 // long enough, or did not contain an invalid cid
10 ErrVarintBuffSmall = errors.New("reading varint: buffer too small")
11
12 // ErrVarintTooBig means that the varint in the given cid was above the
13 // limit of 2^64
14 ErrVarintTooBig = errors.New("reading varint: varint bigger than 64bits" +
15 " and not supported")
16
17 // ErrCidTooShort means that the cid passed to decode was not long
18 // enough to be a valid Cid
19 ErrCidTooShort = errors.New("cid too short")
20
21 // ErrInvalidEncoding means that selected encoding is not supported
22 // by this Cid version
23 ErrInvalidEncoding = errors.New("invalid base encoding")
24 )