FlightGear next
dbuserror.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: (C) 2019-2022 swift Project Community / Contributors (https://swift-project.org/)
3 * SPDX-FileCopyrightText: (C) 2019-2022 Lars Toenning <dev@ltoenning.de>
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <dbus/dbus.h>
10#include <string>
11
12namespace flightgear::swift {
13
16{
17public:
23
25 CDBusError() = default;
26
28 explicit CDBusError(const DBusError* error);
29
31 ErrorType getType() const { return m_errorType; }
32
33private:
34 ErrorType m_errorType = NoError;
35 std::string m_name;
36 std::string m_message;
37};
38
39} // namespace flightgear::swift
CDBusError()=default
Default constructor.
ErrorType getType() const
Get error type.
Definition dbuserror.h:31