MCPcopy Create free account
hub / github.com/apache/fory / TypeMismatchError

Function TypeMismatchError

go/fory/errors.go:168–174  ·  view source on GitHub ↗

TypeMismatchError creates a type mismatch error go:noinline

(actual, expected TypeId)

Source from the content-addressed store, hash-verified

166//
167//go:noinline
168func TypeMismatchError(actual, expected TypeId) Error {
169 return panicIfEnabled(Error{
170 kind: ErrKindTypeMismatch,
171 actualType: actual,
172 expectedType: expected,
173 })
174}
175
176// UnknownTypeError creates an unknown type error
177//

Callers 15

readUnionOverrideValueFunction · 0.85
ReadMethod · 0.85
readExpectedTypeIDMethod · 0.85
ReadAndValidateTypeIdMethod · 0.85
ReadBoolSliceMethod · 0.85
ReadInt8SliceMethod · 0.85
ReadInt16SliceMethod · 0.85
ReadInt32SliceMethod · 0.85
ReadInt64SliceMethod · 0.85
ReadUint16SliceMethod · 0.85
ReadUint32SliceMethod · 0.85
ReadUint64SliceMethod · 0.85

Calls 1

panicIfEnabledFunction · 0.85

Tested by

no test coverage detected