| 1 | // Copyright (C) Microsoft Corporation. All rights reserved. |
| 2 | #pragma once |
| 3 | |
| 4 | #include "RuntimeErrorWithSourceLocation.h" |
| 5 | |
| 6 | class NetlinkError : public RuntimeErrorWithSourceLocation |
| 7 | { |
| 8 | public: |
| 9 | NetlinkError(int error, const std::source_location& source = std::source_location::current()); |
| 10 | |
| 11 | int Error() const; |
| 12 | |
| 13 | private: |
| 14 | int m_error = -1; |
| 15 | }; |