代码拉取完成,页面将自动刷新
package avro
import (
"errors"
"fmt"
"io"
)
// Signals that an end of file or stream has been reached unexpectedly.
var ErrUnexpectedEOF = io.ErrUnexpectedEOF
// Happens when the given value to decode overflows maximum int32 value.
var ErrIntOverflow = errors.New("Overflowed an int value")
// Happens when the given value to decode overflows maximum int64 value.
var ErrLongOverflow = errors.New("Overflowed a long value")
// Happens when given value to decode as bytes has negative length.
var ErrNegativeBytesLength = errors.New("Negative bytes length")
// Happens when given value to decode as bool is neither 0x00 nor 0x01.
var ErrInvalidBool = errors.New("Invalid bool value")
// Happens when given value to decode as a int is invalid
var ErrInvalidInt = errors.New("Invalid int value")
// Happens when given value to decode as a long is invalid
var ErrInvalidLong = errors.New("Invalid long value")
// Happens when given value to decode as string has either negative or undecodable length.
var ErrInvalidStringLength = errors.New("Invalid string length")
// Indicates the given file to decode does not correspond to Avro data file format.
var ErrNotAvroFile = errors.New("Not an Avro data file")
// Happens when trying to read next block without finishing the previous one.
var ErrBlockNotFinished = errors.New("Block read is unfinished")
// Happens when avro schema contains invalid value for fixed size.
var ErrInvalidFixedSize = errors.New("Invalid Fixed type size")
//// Happens when avro schema contains a union within union.
//var ErrNestedUnionsNotAllowed = errors.New("Nested unions are not allowed")
// UnionTypeOverflow happens when the numeric index of the union type is invalid.
var ErrUnionTypeOverflow = errors.New("Union type overflow")
// Happens when avro schema is unparsable or is invalid in any other way.
var ErrInvalidSchema = errors.New("Invalid schema")
// Happens when a datum reader has no set schema.
var ErrSchemaNotSet = errors.New("Schema not set")
// Specify a custom error message for indicating which necessary field in the struct is missing.
func NewFieldDoesNotExistError(field string) error {
return errors.New(fmt.Sprintf("Field does not exist: [%v]", field))
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。