/* * Copyright (C) 2014 Pavel Kirienko */ #pragma once #include #include namespace uavcan_linux { class Exception : public std::runtime_error { const int errno_; public: explicit Exception(const std::string& descr) : std::runtime_error(descr) , errno_(errno) { } int getErrno() const { return errno_; } }; }