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
12
namespace
flightgear::swift
{
13
15
class
CDBusError
16
{
17
public
:
19
enum
ErrorType
{
20
NoError
,
21
Other
22
};
23
25
CDBusError
() =
default
;
26
28
explicit
CDBusError
(
const
DBusError* error);
29
31
ErrorType
getType
()
const
{
return
m_errorType; }
32
33
private
:
34
ErrorType
m_errorType =
NoError
;
35
std::string m_name;
36
std::string m_message;
37
};
38
39
}
// namespace flightgear::swift
flightgear::swift::CDBusError::CDBusError
CDBusError()=default
Default constructor.
flightgear::swift::CDBusError::ErrorType
ErrorType
Error type.
Definition
dbuserror.h:19
flightgear::swift::CDBusError::Other
@ Other
Definition
dbuserror.h:21
flightgear::swift::CDBusError::NoError
@ NoError
Definition
dbuserror.h:20
flightgear::swift::CDBusError::getType
ErrorType getType() const
Get error type.
Definition
dbuserror.h:31
flightgear::swift
Definition
dbuscallbacks.h:12
src
Network
Swift
dbuserror.h
Generated on Tue Jun 3 2025 12:58:41 for FlightGear by
1.13.2