Skip to content

Commit 57438e8

Browse files
committed
Merge branch 'dev' of github.com:sysflow-telemetry/sf-apis into dev
Signed-off-by: Frederico Araujo <[email protected]>
2 parents e73eaf7 + 4162ccd commit 57438e8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

c++/sysflow/sysflow.hh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ struct SysFlow {
509509
inline
510510
std::string _SysFlow_avsc_Union__0__::get_string() const {
511511
if (idx_ != 1) {
512-
throw avro::Exception("Invalid type for union");
512+
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
513513
}
514514
return boost::any_cast<std::string >(value_);
515515
}
@@ -523,7 +523,7 @@ void _SysFlow_avsc_Union__0__::set_string(const std::string& v) {
523523
inline
524524
OID _SysFlow_avsc_Union__1__::get_OID() const {
525525
if (idx_ != 1) {
526-
throw avro::Exception("Invalid type for union");
526+
throw avro::Exception(std::string("Invalid type for union. Expected OID index, got index ") + std::to_string(idx_));
527527
}
528528
return boost::any_cast<OID >(value_);
529529
}
@@ -537,7 +537,7 @@ void _SysFlow_avsc_Union__1__::set_OID(const OID& v) {
537537
inline
538538
std::string _SysFlow_avsc_Union__2__::get_string() const {
539539
if (idx_ != 1) {
540-
throw avro::Exception("Invalid type for union");
540+
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
541541
}
542542
return boost::any_cast<std::string >(value_);
543543
}
@@ -551,7 +551,7 @@ void _SysFlow_avsc_Union__2__::set_string(const std::string& v) {
551551
inline
552552
std::string _SysFlow_avsc_Union__3__::get_string() const {
553553
if (idx_ != 1) {
554-
throw avro::Exception("Invalid type for union");
554+
throw avro::Exception(std::string("Invalid type for union. Expected string index, got index ") + std::to_string(idx_));
555555
}
556556
return boost::any_cast<std::string >(value_);
557557
}
@@ -565,7 +565,7 @@ void _SysFlow_avsc_Union__3__::set_string(const std::string& v) {
565565
inline
566566
std::array<uint8_t, 20> _SysFlow_avsc_Union__4__::get_FOID() const {
567567
if (idx_ != 1) {
568-
throw avro::Exception("Invalid type for union");
568+
throw avro::Exception(std::string("Invalid type for union. Expected FOID index, got index ") + std::to_string(idx_));
569569
}
570570
return boost::any_cast<std::array<uint8_t, 20> >(value_);
571571
}
@@ -579,7 +579,7 @@ void _SysFlow_avsc_Union__4__::set_FOID(const std::array<uint8_t, 20>& v) {
579579
inline
580580
SFHeader _SysFlow_avsc_Union__5__::get_SFHeader() const {
581581
if (idx_ != 0) {
582-
throw avro::Exception("Invalid type for union");
582+
throw avro::Exception(std::string("Invalid type for union. Expected header index, got index ") + std::to_string(idx_));
583583
}
584584
return boost::any_cast<SFHeader >(value_);
585585
}
@@ -593,7 +593,7 @@ void _SysFlow_avsc_Union__5__::set_SFHeader(const SFHeader& v) {
593593
inline
594594
Container _SysFlow_avsc_Union__5__::get_Container() const {
595595
if (idx_ != 1) {
596-
throw avro::Exception("Invalid type for union");
596+
throw avro::Exception(std::string("Invalid type for union. Expected container index, got index ") + std::to_string(idx_));
597597
}
598598
return boost::any_cast<Container >(value_);
599599
}
@@ -607,7 +607,7 @@ void _SysFlow_avsc_Union__5__::set_Container(const Container& v) {
607607
inline
608608
Process _SysFlow_avsc_Union__5__::get_Process() const {
609609
if (idx_ != 2) {
610-
throw avro::Exception("Invalid type for union");
610+
throw avro::Exception(std::string("Invalid type for union. Expected process index, got index ") + std::to_string(idx_));
611611
}
612612
return boost::any_cast<Process >(value_);
613613
}
@@ -621,7 +621,7 @@ void _SysFlow_avsc_Union__5__::set_Process(const Process& v) {
621621
inline
622622
File _SysFlow_avsc_Union__5__::get_File() const {
623623
if (idx_ != 3) {
624-
throw avro::Exception("Invalid type for union");
624+
throw avro::Exception(std::string("Invalid type for union. Expected file index, got index ") + std::to_string(idx_));
625625
}
626626
return boost::any_cast<File >(value_);
627627
}
@@ -635,7 +635,7 @@ void _SysFlow_avsc_Union__5__::set_File(const File& v) {
635635
inline
636636
ProcessEvent _SysFlow_avsc_Union__5__::get_ProcessEvent() const {
637637
if (idx_ != 4) {
638-
throw avro::Exception("Invalid type for union");
638+
throw avro::Exception(std::string("Invalid type for union. Expected PE index, got index ") + std::to_string(idx_));
639639
}
640640
return boost::any_cast<ProcessEvent >(value_);
641641
}
@@ -649,7 +649,7 @@ void _SysFlow_avsc_Union__5__::set_ProcessEvent(const ProcessEvent& v) {
649649
inline
650650
NetworkFlow _SysFlow_avsc_Union__5__::get_NetworkFlow() const {
651651
if (idx_ != 5) {
652-
throw avro::Exception("Invalid type for union");
652+
throw avro::Exception(std::string("Invalid type for union. Expected NF index, got index ") + std::to_string(idx_));
653653
}
654654
return boost::any_cast<NetworkFlow >(value_);
655655
}
@@ -663,7 +663,7 @@ void _SysFlow_avsc_Union__5__::set_NetworkFlow(const NetworkFlow& v) {
663663
inline
664664
FileFlow _SysFlow_avsc_Union__5__::get_FileFlow() const {
665665
if (idx_ != 6) {
666-
throw avro::Exception("Invalid type for union");
666+
throw avro::Exception(std::string("Invalid type for union. Expected FF index, got index ") + std::to_string(idx_));
667667
}
668668
return boost::any_cast<FileFlow >(value_);
669669
}
@@ -677,7 +677,7 @@ void _SysFlow_avsc_Union__5__::set_FileFlow(const FileFlow& v) {
677677
inline
678678
FileEvent _SysFlow_avsc_Union__5__::get_FileEvent() const {
679679
if (idx_ != 7) {
680-
throw avro::Exception("Invalid type for union");
680+
throw avro::Exception(std::string("Invalid type for union. Expected FE index, got index ") + std::to_string(idx_));
681681
}
682682
return boost::any_cast<FileEvent >(value_);
683683
}
@@ -691,7 +691,7 @@ void _SysFlow_avsc_Union__5__::set_FileEvent(const FileEvent& v) {
691691
inline
692692
NetworkEvent _SysFlow_avsc_Union__5__::get_NetworkEvent() const {
693693
if (idx_ != 8) {
694-
throw avro::Exception("Invalid type for union");
694+
throw avro::Exception(std::string("Invalid type for union. Expected NE index, got index ") + std::to_string(idx_));
695695
}
696696
return boost::any_cast<NetworkEvent >(value_);
697697
}
@@ -705,7 +705,7 @@ void _SysFlow_avsc_Union__5__::set_NetworkEvent(const NetworkEvent& v) {
705705
inline
706706
ProcessFlow _SysFlow_avsc_Union__5__::get_ProcessFlow() const {
707707
if (idx_ != 9) {
708-
throw avro::Exception("Invalid type for union");
708+
throw avro::Exception(std::string("Invalid type for union. Expected PF index, got index ") + std::to_string(idx_));
709709
}
710710
return boost::any_cast<ProcessFlow >(value_);
711711
}
@@ -719,7 +719,7 @@ void _SysFlow_avsc_Union__5__::set_ProcessFlow(const ProcessFlow& v) {
719719
inline
720720
Pod _SysFlow_avsc_Union__5__::get_Pod() const {
721721
if (idx_ != 10) {
722-
throw avro::Exception("Invalid type for union");
722+
throw avro::Exception(std::string("Invalid type for union. Expected pod index, got index ") + std::to_string(idx_));
723723
}
724724
return boost::any_cast<Pod >(value_);
725725
}
@@ -733,7 +733,7 @@ void _SysFlow_avsc_Union__5__::set_Pod(const Pod& v) {
733733
inline
734734
K8sEvent _SysFlow_avsc_Union__5__::get_K8sEvent() const {
735735
if (idx_ != 11) {
736-
throw avro::Exception("Invalid type for union");
736+
throw avro::Exception(std::string("Invalid type for union. Expected KE index, got index ") + std::to_string(idx_));
737737
}
738738
return boost::any_cast<K8sEvent >(value_);
739739
}

0 commit comments

Comments
 (0)