From e28d1df6c8a1885b5576ecba4a6f64e588a5b13e Mon Sep 17 00:00:00 2001 From: CursedRock17 Date: Mon, 14 Aug 2023 18:09:40 -0400 Subject: [PATCH] Fixing Typo Signed-off-by: CursedRock17 Finishing typos Signed-off-by: CursedRock17 --- rclcpp/include/rclcpp/exceptions/exceptions.hpp | 2 +- rclcpp/src/rclcpp/parameter_value.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/include/rclcpp/exceptions/exceptions.hpp b/rclcpp/include/rclcpp/exceptions/exceptions.hpp index cea8a8303c..b3a53373ed 100644 --- a/rclcpp/include/rclcpp/exceptions/exceptions.hpp +++ b/rclcpp/include/rclcpp/exceptions/exceptions.hpp @@ -207,7 +207,7 @@ class UnknownROSArgsError : public std::runtime_error }; /// Thrown when an unknown type is passed -class UnkownTypeError : public std::runtime_error +class UnknownTypeError : public std::runtime_error { public: explicit UnknownTypeError(const std::string & type) diff --git a/rclcpp/src/rclcpp/parameter_value.cpp b/rclcpp/src/rclcpp/parameter_value.cpp index d93a2732e1..ee46e77673 100644 --- a/rclcpp/src/rclcpp/parameter_value.cpp +++ b/rclcpp/src/rclcpp/parameter_value.cpp @@ -129,7 +129,7 @@ ParameterValue::ParameterValue(const rcl_interfaces::msg::ParameterValue & value case PARAMETER_NOT_SET: break; default: - UnknownTypeError(std::to_string(value.type)); + throw rclcpp::exceptions::UnknownTypeError(std::to_string(value.type)); } }