Fcitx
Public Member Functions | List of all members
fcitx::dbus::MethodCallError Class Reference

An exception if you want message to return a DBus error. More...

#include <fcitx-utils/dbus/objectvtable.h>

Inheritance diagram for fcitx::dbus::MethodCallError:
Inheritance graph
[legend]
Collaboration diagram for fcitx::dbus::MethodCallError:
Collaboration graph
[legend]

Public Member Functions

 MethodCallError (const char *name, const char *error)
 
const char * what () const noexcept override
 
const char * name () const
 

Detailed Description

An exception if you want message to return a DBus error.

In the registered property or method, you may throw this exception if a DBus error happens.

E.g.

throw dbus::MethodCallError("org.freedesktop.DBus.Error.InvalidArgs", ...);

Definition at line 52 of file objectvtable.h.


The documentation for this class was generated from the following file: