astra_ros
include
astra_ros
Exception.hpp
1
#ifndef _ASTRA_ROS_EXCEPTION_HPP_
2
#define _ASTRA_ROS_EXCEPTION_HPP_
3
4
#include <exception>
5
6
#include <astra/capi/astra.h>
7
8
namespace
astra_ros
9
{
14
class
Exception
:
public
std::exception
15
{
16
public
:
20
Exception
(
const
astra_status_t status);
21
25
virtual
const
char
*
what
() const noexcept;
26
27
private:
28
astra_status_t status_;
29
};
30
}
31
32
#endif
astra_ros::Exception
Wraps a astra_status_t when an Astra SDK call fails.
Definition:
Exception.hpp:15
astra_ros::Exception::Exception
Exception(const astra_status_t status)
astra_ros::Exception::what
virtual const char * what() const noexcept
Generated by
1.8.20