sdbus-c++ 2.1.0
High-level C++ D-Bus library based on systemd D-Bus implementation
Loading...
Searching...
No Matches
Error.h File Reference
#include <errno.h>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  sdbus::Error
 
class  sdbus::Error::Name
 

Macros

#define SDBUS_THROW_ERROR(_MSG, _ERRNO)
 
#define SDBUS_THROW_ERROR_IF(_COND, _MSG, _ERRNO)
 

Functions

Error sdbus::createError (int errNo, std::string customMsg)
 

Variables

const Error::Name sdbus::SDBUSCPP_ERROR_NAME {"org.sdbuscpp.Error"}
 

Detailed Description

(C) 2016 - 2021 KISTLER INSTRUMENTE AG, Winterthur, Switzerland (C) 2016 - 2024 Stanislav Angelovic stani.nosp@m.slav.nosp@m..ange.nosp@m.lovi.nosp@m.c@pro.nosp@m.tonm.nosp@m.ail.c.nosp@m.om

Created on: Nov 8, 2016 Project: sdbus-c++ Description: High-level D-Bus IPC C++ library based on sd-bus

This file is part of sdbus-c++.

sdbus-c++ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.

sdbus-c++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with sdbus-c++. If not, see http://www.gnu.org/licenses/.

Macro Definition Documentation

◆ SDBUS_THROW_ERROR

#define SDBUS_THROW_ERROR ( _MSG,
_ERRNO )
Value:
throw sdbus::createError((_ERRNO), (_MSG)) \

◆ SDBUS_THROW_ERROR_IF

#define SDBUS_THROW_ERROR_IF ( _COND,
_MSG,
_ERRNO )
Value:
if (!(_COND)) ; else SDBUS_THROW_ERROR((_MSG), (_ERRNO)) \