HashMismatchError creates a struct hash mismatch error go:noinline
(actual, expected int32, typeName string)
| 188 | // |
| 189 | //go:noinline |
| 190 | func 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 | // |
no test coverage detected