@@ -33,37 +33,37 @@ namespace org::apache::nifi::minifi::api::utils {
3333
3434inline std::string parseProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
3535 return ctx.getProperty (property.name , flow_file)
36- | minifi::utils::orThrow (fmt::format (" Expected valid value from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
36+ | minifi::utils::orThrow (fmt::format (" Expected valid value from \" {}\" " , property.name ));
3737}
3838
3939inline bool parseBoolProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
4040 return ctx.getProperty (property.name , flow_file)
4141 | minifi::utils::andThen (parsing::parseBool)
42- | minifi::utils::orThrow (fmt::format (" Expected parsable bool from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
42+ | minifi::utils::orThrow (fmt::format (" Expected parsable bool from \" {}\" " , property.name ));
4343}
4444
4545inline uint64_t parseU64Property (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
4646 return ctx.getProperty (property.name , flow_file)
4747 | minifi::utils::andThen (parsing::parseIntegral<uint64_t >)
48- | minifi::utils::orThrow (fmt::format (" Expected parsable uint64_t from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
48+ | minifi::utils::orThrow (fmt::format (" Expected parsable uint64_t from \" {}\" " , property.name ));
4949}
5050
5151inline int64_t parseI64Property (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
5252 return ctx.getProperty (property.name , flow_file)
5353 | minifi::utils::andThen (parsing::parseIntegral<int64_t >)
54- | minifi::utils::orThrow (fmt::format (" Expected parsable int64_t from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
54+ | minifi::utils::orThrow (fmt::format (" Expected parsable int64_t from \" {}\" " , property.name ));
5555}
5656
5757inline std::chrono::milliseconds parseDurationProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
5858 return ctx.getProperty (property.name , flow_file)
5959 | minifi::utils::andThen (parsing::parseDuration<std::chrono::milliseconds>)
60- | minifi::utils::orThrow (fmt::format (" Expected parsable duration from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
60+ | minifi::utils::orThrow (fmt::format (" Expected parsable duration from \" {}\" " , property.name ));
6161}
6262
6363inline uint64_t parseDataSizeProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
6464 return ctx.getProperty (property.name , flow_file)
6565 | minifi::utils::andThen (parsing::parseDataSize)
66- | minifi::utils::orThrow (fmt::format (" Expected parsable data size from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
66+ | minifi::utils::orThrow (fmt::format (" Expected parsable data size from \" {}\" " , property.name ));
6767}
6868
6969inline std::optional<std::string> parseOptionalProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
@@ -74,7 +74,7 @@ inline std::optional<std::string> parseOptionalProperty(const core::ProcessConte
7474inline std::optional<bool > parseOptionalBoolProperty (const core::ProcessContext& ctx, const minifi::core::PropertyReference& property, const core::FlowFile* flow_file = nullptr ) {
7575 if (const auto property_str = ctx.getProperty (property.name , flow_file)) {
7676 return parsing::parseBool (*property_str)
77- | minifi::utils::orThrow (fmt::format (" Expected parsable bool from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
77+ | minifi::utils::orThrow (fmt::format (" Expected parsable bool from \" {}\" " , property.name ));
7878 }
7979 return std::nullopt ;
8080}
@@ -85,7 +85,7 @@ inline std::optional<uint64_t> parseOptionalU64Property(const core::ProcessConte
8585 return std::nullopt ;
8686 }
8787 return parsing::parseIntegral<uint64_t >(*property_str)
88- | minifi::utils::orThrow (fmt::format (" Expected parsable uint64_t from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
88+ | minifi::utils::orThrow (fmt::format (" Expected parsable uint64_t from \" {}\" " , property.name ));
8989 }
9090
9191 return std::nullopt ;
@@ -97,7 +97,7 @@ inline std::optional<int64_t> parseOptionalI64Property(const core::ProcessContex
9797 return std::nullopt ;
9898 }
9999 return parsing::parseIntegral<int64_t >(*property_str)
100- | minifi::utils::orThrow (fmt::format (" Expected parsable int64_t from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
100+ | minifi::utils::orThrow (fmt::format (" Expected parsable int64_t from \" {}\" " , property.name ));
101101 }
102102
103103 return std::nullopt ;
@@ -111,7 +111,7 @@ inline std::optional<std::chrono::milliseconds> parseOptionalDurationProperty(co
111111 return std::nullopt ;
112112 }
113113 return parsing::parseDuration (*property_str)
114- | minifi::utils::orThrow (fmt::format (" Expected parsable duration from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
114+ | minifi::utils::orThrow (fmt::format (" Expected parsable duration from \" {}\" " , property.name ));
115115 }
116116
117117 return std::nullopt ;
@@ -123,7 +123,7 @@ inline std::optional<uint64_t> parseOptionalDataSizeProperty(const core::Process
123123 return std::nullopt ;
124124 }
125125 return parsing::parseDataSize (*property_str)
126- | minifi::utils::orThrow (fmt::format (" Expected parsable data size from \" {}::{} \" " , ctx. getProcessorName () , property.name ));
126+ | minifi::utils::orThrow (fmt::format (" Expected parsable data size from \" {}\" " , property.name ));
127127 }
128128
129129 return std::nullopt ;
@@ -135,7 +135,7 @@ inline std::optional<float> parseOptionalFloatProperty(const core::ProcessContex
135135 return std::nullopt ;
136136 }
137137 return parsing::parseFloat (*property_str)
138- | minifi::utils::orThrow (fmt::format (" Expected parsable float from {}::{} " , ctx. getProcessorName () , property.name ));
138+ | minifi::utils::orThrow (fmt::format (" Expected parsable float from \" {} \" " , property.name ));
139139 }
140140 return std::nullopt ;
141141}
0 commit comments