get_ros_parameter_exception.h
Go to the documentation of this file.
1 // Copyright (c) 2020-2021 Pilz GmbH & Co. KG
2 //
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU Lesser General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public License
14 // along with this program. If not, see <https://www.gnu.org/licenses/>.
15 
16 #ifndef PSEN_SCAN_V2_GET_ROS_PARAMETER_EXCEPTION_H
17 #define PSEN_SCAN_V2_GET_ROS_PARAMETER_EXCEPTION_H
18 
19 #include <stdexcept>
20 
21 namespace psen_scan_v2
22 {
26 class ParamMissingOnServer : public std::runtime_error
27 {
28 public:
29  ParamMissingOnServer(const std::string& msg) : std::runtime_error(msg)
30  {
31  }
32 };
33 
37 class WrongParameterType : public std::runtime_error
38 {
39 public:
40  WrongParameterType(const std::string& msg) : std::runtime_error(msg)
41  {
42  }
43 };
44 
45 } // namespace psen_scan_v2
46 
47 #endif // PSEN_SCAN_V2_GET_ROS_PARAMETER_EXCEPTION_H
psen_scan_v2::WrongParameterType::WrongParameterType
WrongParameterType(const std::string &msg)
Definition: get_ros_parameter_exception.h:40
psen_scan_v2::WrongParameterType
Exception thrown if a parameter can be found on the ROS parameter server but with an unexpected type.
Definition: get_ros_parameter_exception.h:37
psen_scan_v2::ParamMissingOnServer::ParamMissingOnServer
ParamMissingOnServer(const std::string &msg)
Definition: get_ros_parameter_exception.h:29
psen_scan_v2
Root namespace for the ROS part.
Definition: active_zoneset_node.h:29
std
psen_scan_v2::ParamMissingOnServer
Exception thrown if a parameter of a certain type cannot be found on the ROS parameter server.
Definition: get_ros_parameter_exception.h:26


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:11