1Net::DBus::Binding::MesUssaegre:C:oEnrtrroirb(u3t)ed PerNletD:o:cDuBmuesn:t:aBtiinodning::Message::Error(3)
2
3
4

NAME

6       Net::DBus::Binding::Message::Error - a message encoding a method call
7       error
8

SYNOPSIS

10         use Net::DBus::Binding::Message::Error;
11
12         my $error = Net::DBus::Binding::Message::Error->new(
13             replyto => $method_call,
14             name => "org.example.myobject.FooException",
15             description => "Unable to do Foo when updating bar");
16
17         $connection->send($error);
18

DESCRIPTION

20       This module is part of the low-level DBus binding APIs, and should not
21       be used by application code. No guarantees are made about APIs under
22       the "Net::DBus::Binding::" namespace being stable across releases.
23
24       This module provides a convenience constructor for creating a message
25       representing an error condition.
26

METHODS

28       my $error = Net::DBus::Binding::Message::Error->new( replyto =>
29       $method_call, name => $name, description => $description);
30           Creates a new message, representing an error which occurred during
31           the handling of the method call object passed in as the "replyto"
32           parameter. The "name" parameter is the formal name of the error
33           condition, while the "description" is a short piece of text giving
34           more specific information on the error.
35
36       my $name = $error->get_error_name
37           Returns the formal name of the error, as previously passed in via
38           the "name" parameter in the constructor.
39

AUTHOR

41       Daniel P. Berrange.
42
44       Copyright (C) 2004-2009 Daniel P. Berrange
45

SEE ALSO

47       Net::DBus::Binding::Message
48
49
50
51perl v5.34.0                      2021-07-N2e2t::DBus::Binding::Message::Error(3)
Impressum