@@ -259,10 +259,10 @@ namespace xtd {
259259 if (data_->functions .size () == 0 ) return result_t ();
260260
261261 for (size_t i = 0 ; i < data_->functions .size () - 1 ; i++) {
262- if (data_->functions [i] == nullptr ) throw xtd::argument_null_exception {} ;
262+ if (data_->functions [i] == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
263263 data_->functions [i]();
264264 }
265- if (data_->functions .back () == nullptr ) throw xtd::argument_null_exception {} ;
265+ if (data_->functions .back () == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
266266 return data_->functions .back ()();
267267 }
268268
@@ -717,21 +717,21 @@ namespace xtd {
717717
718718 if (data_->no_arguments_functions .size ()) {
719719 for (size_t i = 0 ; i < data_->no_arguments_functions .size () - (data_->functions .size () == 0 ? 1 : 0 ); i++) {
720- if (data_->no_arguments_functions [i] == nullptr ) throw xtd::argument_null_exception {} ;
720+ if (data_->no_arguments_functions [i] == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
721721 data_->no_arguments_functions [i]();
722722 }
723723
724724 if (data_->functions .size () == 0 ) {
725- if (data_->no_arguments_functions .back () == nullptr ) throw xtd::argument_null_exception {} ;
725+ if (data_->no_arguments_functions .back () == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
726726 return data_->no_arguments_functions .back ()();
727727 }
728728 }
729729
730730 for (size_t i = 0 ; i < data_->functions .size () - 1 ; i++) {
731- if (data_->functions [i] == nullptr ) throw xtd::argument_null_exception {} ;
731+ if (data_->functions [i] == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
732732 data_->functions [i](arguments...);
733733 }
734- if (data_->functions .back () == nullptr ) throw xtd::argument_null_exception {} ;
734+ if (data_->functions .back () == nullptr ) xtd::helpers::throw_helper::throws (xtd::helpers::exception_case::argument_null) ;
735735 return data_->functions .back ()(arguments...);
736736 }
737737 // / @}
0 commit comments