mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 11:07:36 +08:00
Linux helpers
This commit is contained in:
@@ -12,10 +12,10 @@ namespace uavcan_linux
|
||||
|
||||
class Exception : public std::runtime_error
|
||||
{
|
||||
int errno_;
|
||||
const int errno_;
|
||||
|
||||
public:
|
||||
Exception(const char* descr)
|
||||
Exception(const std::string& descr)
|
||||
: std::runtime_error(descr)
|
||||
, errno_(errno)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user