.. _program_listing_file_include_rclcpp_action_exceptions.hpp: Program Listing for File exceptions.hpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/rclcpp_action/exceptions.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2018 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef RCLCPP_ACTION__EXCEPTIONS_HPP_ #define RCLCPP_ACTION__EXCEPTIONS_HPP_ #include #include namespace rclcpp_action { namespace exceptions { class UnknownGoalHandleError : public std::invalid_argument { public: UnknownGoalHandleError() : std::invalid_argument("Goal handle is not known to this client.") { } }; class UnawareGoalHandleError : public std::runtime_error { public: UnawareGoalHandleError( const std::string & message = "Goal handle is not tracking the goal result.") : std::runtime_error(message) { } }; } // namespace exceptions } // namespace rclcpp_action #endif // RCLCPP_ACTION__EXCEPTIONS_HPP_