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

Function HashMismatchError

go/fory/errors.go:190–197  ·  view source on GitHub ↗

HashMismatchError creates a struct hash mismatch error go:noinline

(actual, expected int32, typeName string)

Source from the content-addressed store, hash-verified

188//
189//go:noinline
190func HashMismatchError(actual, expected int32, typeName string) Error {
191 return panicIfEnabled(Error{
192 kind: ErrKindHashMismatch,
193 actualHash: actual,
194 expectedHash: expected,
195 message: fmt.Sprintf("hash %d is not consistent with %d for type %s", actual, expected, typeName),
196 })
197}
198
199// SerializationError creates a general serialization error
200//

Callers 1

ReadDataMethod · 0.85

Calls 1

panicIfEnabledFunction · 0.85

Tested by

no test coverage detected