Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
uavcan_linux::LibuavcanErrorException Class Reference

#include <exception.hpp>

Inheritance diagram for uavcan_linux::LibuavcanErrorException:
Inheritance graph
[legend]

Public Member Functions

std::int16_t getLibuavcanErrorCode () const
 
 LibuavcanErrorException (std::int16_t uavcan_error_code)
 
- Public Member Functions inherited from uavcan_linux::Exception
 Exception (const std::string &descr, int use_errno=errno)
 
int getErrno () const
 

Static Private Member Functions

static std::string makeErrorString (std::int16_t e)
 

Private Attributes

const std::int16_t error_
 

Detailed Description

This type is thrown when a Libuavcan API method exits with error. The error code is stored in the exception object and is avialable via getLibuavcanErrorCode().

Definition at line 42 of file exception.hpp.

Constructor & Destructor Documentation

◆ LibuavcanErrorException()

uavcan_linux::LibuavcanErrorException::LibuavcanErrorException ( std::int16_t  uavcan_error_code)
inlineexplicit

Definition at line 52 of file exception.hpp.

Member Function Documentation

◆ getLibuavcanErrorCode()

std::int16_t uavcan_linux::LibuavcanErrorException::getLibuavcanErrorCode ( ) const
inline

Definition at line 57 of file exception.hpp.

◆ makeErrorString()

static std::string uavcan_linux::LibuavcanErrorException::makeErrorString ( std::int16_t  e)
inlinestaticprivate

Definition at line 46 of file exception.hpp.

Member Data Documentation

◆ error_

const std::int16_t uavcan_linux::LibuavcanErrorException::error_
private

Definition at line 44 of file exception.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05