AnyEvent::XMPP::Error::MUC(3pm) | User Contributed Perl Documentation | AnyEvent::XMPP::Error::MUC(3pm) |
AnyEvent::XMPP::Error::MUC - MUC error
Subclass of AnyEvent::XMPP::Error
If we got a presence error the method "presence_error" returns a AnyEvent::XMPP::Error::Presence object with further details. However, this class tries to provide a mapping for you (the developer) to ease the load of figuring out which error means what. To make identification of the errors with XEP-0045 more clear I included the error codes and condition names.
Here are the more descriptive types:
(Condition: not-authorized, Code: 401)
(Condition: forbidden, Code: 403)
(Condition: item-not-found, Code: 404)
(Condition: not-allowed, Code: 405)
(Condition: not-acceptable, Code: 406)
(Condition: registration-required, Code: 407)
(Condition: conflict, Code: 409)
(Condition: service-unavailable, Code: 503)
The condition and code are also available through the AnyEvent::XMPP::Error::Presence object returned by "presence_error", see below.
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-12-06 | perl v5.36.0 |