astra_ros
Public Member Functions | List of all members
astra_ros::Exception Class Reference

Wraps a astra_status_t when an Astra SDK call fails. More...

#include <Exception.hpp>

Inheritance diagram for astra_ros::Exception:
Inheritance graph
[legend]
Collaboration diagram for astra_ros::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (const astra_status_t status)
 
virtual const char * what () const noexcept
 

Detailed Description

Wraps a astra_status_t when an Astra SDK call fails.

Constructor & Destructor Documentation

◆ Exception()

astra_ros::Exception::Exception ( const astra_status_t  status)
Parameters
statusThe astra_status_t value to wrap. ASTRA_STATUS_SUCCESS should not be thrown.

Member Function Documentation

◆ what()

virtual const char* astra_ros::Exception::what ( ) const
virtualnoexcept
Returns
A string representing the astra_status_t

The documentation for this class was generated from the following file: