mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:53:34 +08:00
libuavcan docs
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
|
||||
namespace uavcan_linux
|
||||
{
|
||||
|
||||
/**
|
||||
* This is the root exception class for all exceptions that can be thrown from the libuavcan Linux driver.
|
||||
*/
|
||||
class Exception : public std::runtime_error
|
||||
{
|
||||
const int errno_;
|
||||
@@ -20,6 +22,10 @@ public:
|
||||
, errno_(errno)
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Returns standard UNIX errno value captured at the moment
|
||||
* when this exception object was constructed.
|
||||
*/
|
||||
int getErrno() const { return errno_; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user