SD_BUS_REPLY_METHOD_ERROR - Online Linux Manual PageSection : 3
Updated :
Source : systemd 250
Note : sd_bus_reply_method_error
NAMEsd_bus_reply_method_error, sd_bus_reply_method_errorf, sd_bus_reply_method_errorfv, sd_bus_reply_method_errno, sd_bus_reply_method_errnof, sd_bus_reply_method_errnofv − Reply with an error to a D−Bus method call
SYNOPSIS#include <systemd/sd−bus.h>int sd_bus_reply_method_error(sd_bus_message *call, const sd_bus_error *e); int sd_bus_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...); int sd_bus_reply_method_errorfv(sd_bus_message *call, const char *name, const char *format, va_list ap); int sd_bus_reply_method_errno(sd_bus_message *call, int error, const sd_bus_error *p); int sd_bus_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...); int sd_bus_reply_method_errnofv(sd_bus_message *call, int error, const char *format, va_list ap);
DESCRIPTIONThe sd_bus_reply_method_error() function sends an error reply to the call message. The error structure e specifies the error to send, and is used as described in sd_bus_message_new_method_error(3). If no reply is expected to call, this function succeeds without sending a reply. The sd_bus_reply_method_errorf() is to sd_bus_reply_method_error() what sd_bus_message_new_method_errorf() is to sd_bus_message_new_method_error(). The sd_bus_reply_method_errno() is to sd_bus_reply_method_error() what sd_bus_message_new_method_errno() is to sd_bus_message_new_method_error(). The sd_bus_reply_method_errnof() is to sd_bus_reply_method_error() what sd_bus_message_new_method_errnof() is to sd_bus_message_new_method_error().
RETURN VALUEThis function returns a non−negative integer if the error reply was successfully sent or if call does not expect a reply. On failure, it returns a negative errno−style error code.
ErrorsReturned errors may indicate the following problems: −EINVAL The input parameter call is NULL. Message call is not a method call message. Message call is not attached to a bus. The error parameter e to sd_bus_reply_method_error() is not set, see sd_bus_error_is_set(3). −EPERM Message call has been sealed. −ENOTCONN The bus to which message call is attached is not connected. −ENOMEM Memory allocation failed. In addition, any error returned by sd_bus_send(1) may be returned.
NOTESThese APIs are implemented as a shared library, which can be compiled and linked to with the libsystemd pkg-config(1) file.
SEE ALSOsystemd(1), sd-bus(3), sd_bus_message_new_method_error(3) 0
Johanes Gumabo
Data Size : 13,218 byte
man-sd_bus_reply_method_errno.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 180,514
Visitor ID : :
Visitor IP : 3.15.12.133 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.