master
cpp 14 lines 370 Bytes
Raw
1 // Copyright (C) Microsoft Corporation. All rights reserved.
2 #include <format>
3 #include <string>
4 #include "NetlinkError.h"
5
6 NetlinkError::NetlinkError(int error, const std::source_location& source) :
7 RuntimeErrorWithSourceLocation(std::format("Netlink returned error: {}", error), source), m_error(error)
8 {
9 }
10
11 int NetlinkError::Error() const
12 {
13 return m_error;
14 }