@@ -513,7 +513,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::RClassField::BeforeConnectPageSource(ROO
513
513
514
514
void ROOT::RClassField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
515
515
{
516
- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName );
516
+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeVersion | kDiffTypeName ). ThrowOnError () ;
517
517
}
518
518
519
519
void ROOT::RClassField::ConstructValue (void *where) const
@@ -611,7 +611,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::REnumField::CloneImpl(std::string_view n
611
611
void ROOT::REnumField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
612
612
{
613
613
// TODO(jblomer): allow enum to enum conversion only by rename rule
614
- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
614
+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
615
615
}
616
616
617
617
std::vector<ROOT::RFieldBase::RValue> ROOT::REnumField::SplitValue (const RValue &value) const
@@ -677,8 +677,8 @@ void ROOT::RPairField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
677
677
static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
678
678
679
679
const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
680
- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
681
- EnsureMatchingTypePrefix (fieldDesc, prefixes);
680
+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
681
+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
682
682
683
683
const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
684
684
if (nOnDiskSubfields != 2 ) {
@@ -822,7 +822,7 @@ void ROOT::RProxiedCollectionField::GenerateColumns(const ROOT::RNTupleDescripto
822
822
823
823
void ROOT::RProxiedCollectionField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
824
824
{
825
- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName );
825
+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName ). ThrowOnError () ;
826
826
}
827
827
828
828
void ROOT::RProxiedCollectionField::ConstructValue (void *where) const
@@ -989,7 +989,7 @@ std::unique_ptr<ROOT::RFieldBase> ROOT::RStreamerField::BeforeConnectPageSource(
989
989
990
990
void ROOT::RStreamerField::ReconcileOnDiskField (const RNTupleDescriptor &desc)
991
991
{
992
- EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion );
992
+ EnsureMatchingOnDiskField (desc.GetFieldDescriptor (GetOnDiskId ()), kDiffTypeName | kDiffTypeVersion ). ThrowOnError () ;
993
993
}
994
994
995
995
void ROOT::RStreamerField::ConstructValue (void *where) const
@@ -1224,8 +1224,8 @@ void ROOT::RTupleField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
1224
1224
static const std::vector<std::string> prefixes = {" std::pair<" , " std::tuple<" };
1225
1225
1226
1226
const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1227
- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1228
- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1227
+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1228
+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
1229
1229
1230
1230
const auto nOnDiskSubfields = fieldDesc.GetLinkIds ().size ();
1231
1231
const auto nSubfields = fSubfields .size ();
@@ -1386,8 +1386,8 @@ void ROOT::RVariantField::ReconcileOnDiskField(const RNTupleDescriptor &desc)
1386
1386
static const std::vector<std::string> prefixes = {" std::variant<" };
1387
1387
1388
1388
const auto &fieldDesc = desc.GetFieldDescriptor (GetOnDiskId ());
1389
- EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName );
1390
- EnsureMatchingTypePrefix (fieldDesc, prefixes);
1389
+ EnsureMatchingOnDiskField (fieldDesc, kDiffTypeName ). ThrowOnError () ;
1390
+ EnsureMatchingTypePrefix (fieldDesc, prefixes). ThrowOnError () ;
1391
1391
1392
1392
if (fSubfields .size () != fieldDesc.GetLinkIds ().size ()) {
1393
1393
throw RException (R__FAIL (" number of variants on-disk do not match for " + GetQualifiedFieldName ()));
0 commit comments