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

Function conversion_error

cpp/fory/serialization/compatible_scalar.cc:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void conversion_error(ReadContext &ctx, uint32_t remote_type_id,
347 uint32_t local_type_id, std::string_view field,
348 std::string_view reason) {
349 ctx.set_error(Error::invalid_data(
350 "Cannot convert compatible field `" + std::string(field) + "` from " +
351 type_name(remote_type_id) + " to " + type_name(local_type_id) + ": " +
352 std::string(reason)));
353}
354
355bool canonical_decimal(BigUInt magnitude, bool negative, int64_t scale64,
356 Decimal &out) {

Callers 4

read_scalarFunction · 0.70
read_int_targetFunction · 0.70
read_uint_targetFunction · 0.70
read_convertedFunction · 0.70

Calls 3

type_nameFunction · 0.85
stringFunction · 0.50
set_errorMethod · 0.45

Tested by

no test coverage detected