AnyEven...::Stanza(3)

okay so bestie, welcome to the AnyEvent::XMPP::Error::Stanza(3) page from the User Contributed Perl Documentation β€” section 3, and the header line shows AnyEven...::Stanza(3) because truncation is a whole mood. This page is all about stanza errors and it's lowkey useful, no cap.

🌸 NAME 🌸

AnyEvent::XMPP::Error::Stanza β€” Stanza errors.

It's a subclass of AnyEvent::XMPP::Error β€” so it's giving error object, but make it stanza-specific πŸ’….

πŸ’– METHODS πŸ’–

xml_node ()

Returns the AnyEvent::XMPP::Node object for this Stanza error. This method returns undef if the Stanza timeouted.

If it did timeout? Okay so the "condition" method returns "client-timeout", "type" returns 'cancel', and "code" returns undef. That's the whole timeout vibe check 😭.

type ()

This method returns one of:

  • 'cancel'
  • 'continue'
  • 'modify'
  • 'auth'
  • 'wait'

code ()

Returns the error code if one was found. If not? Then no code, bestie.

condition ()

Returns the error condition string if one was found when receiving the Stanza error. It can be undef or one of these:

  • bad-request
  • conflict
  • feature-not-implemented
  • forbidden
  • gone
  • internal-server-error
  • item-not-found
  • jid-malformed
  • not-acceptable
  • not-allowed
  • not-authorized
  • payment-required
  • recipient-unavailable
  • redirect
  • registration-required
  • remote-server-not-found
  • remote-server-timeout
  • resource-constraint
  • service-unavailable
  • subscription-required
  • undefined-condition
  • unexpected-request

condition_node ()

Returns the error condition node if one was found when receiving the Stanza error. This is mostly for debugging purposes β€” like a little backstage pass for when you need to peek at the node πŸ•΅οΈβ€β™€οΈ.

text ()

The human-readable error portion. Might be undef if none was received.

✨ AUTHOR ✨

Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>" β€” iconic.

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.

Legal bestie moment over. Mwah πŸ’‹ β€” signed off by perl v5.42.2 on 2026-02-15, and the footer still says AnyEven...::Stanza(3).

πŸ“¦ where this page comes from