/* * SPDX-FileCopyrightText: (C) 2019-2022 swift Project Community / Contributors (https://swift-project.org/) * SPDX-FileCopyrightText: (C) 2019-2022 Lars Toenning * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include namespace flightgear::swift { //! DBus error class CDBusError { public: //! Error type enum ErrorType { NoError, Other }; //! Default constructor CDBusError() = default; //! Constructor explicit CDBusError(const DBusError* error); //! Get error type ErrorType getType() const { return m_errorType; } private: ErrorType m_errorType = NoError; std::string m_name; std::string m_message; }; } // namespace flightgear::swift