rclcpp_action
master
C++ ROS Action Client Library
include
rclcpp_action
exceptions.hpp
Go to the documentation of this file.
1
// Copyright 2018 Open Source Robotics Foundation, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef RCLCPP_ACTION__EXCEPTIONS_HPP_
16
#define RCLCPP_ACTION__EXCEPTIONS_HPP_
17
18
#include <stdexcept>
19
#include <string>
20
21
namespace
rclcpp_action
22
{
23
namespace
exceptions
24
{
25
class
UnknownGoalHandleError
:
public
std::invalid_argument
26
{
27
public
:
28
UnknownGoalHandleError
()
29
:
std
::
invalid_argument
(
"Goal handle is not known to this client."
)
30
{
31
}
32
};
33
34
class
UnawareGoalHandleError
:
public
std::runtime_error
35
{
36
public
:
37
UnawareGoalHandleError
(
38
const
std::string
& message =
"Goal handle is not tracking the goal result."
)
39
:
std
::
runtime_error
(message)
40
{
41
}
42
};
43
44
}
// namespace exceptions
45
46
}
// namespace rclcpp_action
47
48
#endif // RCLCPP_ACTION__EXCEPTIONS_HPP_
std::string
rclcpp_action
Definition:
client.hpp:46
rclcpp_action::exceptions::UnawareGoalHandleError::UnawareGoalHandleError
UnawareGoalHandleError(const std::string &message="Goal handle is not tracking the goal result.")
Definition:
exceptions.hpp:37
rclcpp_action::exceptions::UnknownGoalHandleError
Definition:
exceptions.hpp:25
rclcpp_action::exceptions::UnawareGoalHandleError
Definition:
exceptions.hpp:34
std::runtime_error
std::invalid_argument
std
rclcpp_action::exceptions::UnknownGoalHandleError::UnknownGoalHandleError
UnknownGoalHandleError()
Definition:
exceptions.hpp:28
Generated by
1.8.17