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

#include <exception.hpp>

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

Public Member Functions

 Exception (const std::string &descr, int use_errno=errno)
 
int getErrno () const
 

Static Private Member Functions

static std::string makeErrorString (const std::string &descr, int use_errno)
 

Private Attributes

const int errno_
 

Detailed Description

This is the root exception class for all exceptions that can be thrown from the libuavcan Linux driver.

Definition at line 16 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception()

uavcan_linux::Exception::Exception ( const std::string &  descr,
int  use_errno = errno 
)
inlineexplicit

Definition at line 26 of file exception.hpp.

Member Function Documentation

◆ getErrno()

int uavcan_linux::Exception::getErrno ( ) const
inline

Returns standard UNIX errno value captured at the moment when this exception object was constructed.

Definition at line 35 of file exception.hpp.

◆ makeErrorString()

static std::string uavcan_linux::Exception::makeErrorString ( const std::string &  descr,
int  use_errno 
)
inlinestaticprivate

Definition at line 20 of file exception.hpp.

Member Data Documentation

◆ errno_

const int uavcan_linux::Exception::errno_
private

Definition at line 18 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