| AnyEvent-XMPP documentation | Contained in the AnyEvent-XMPP distribution. |
AnyEvent::XMPP::Error::IQAuth - IQ authentication error
Subclass of AnyEvent::XMPP::Error
This method returns either:
iq_error which means that a IQ error was caught, which
can be accessed with the iq_error method.
Or: no_fields which means that no form fields were found
in the IQ auth result.
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.
| AnyEvent-XMPP documentation | Contained in the AnyEvent-XMPP distribution. |
package AnyEvent::XMPP::Error::IQAuth; use AnyEvent::XMPP::Error; use strict; our @ISA = qw/AnyEvent::XMPP::Error/;
sub context { $_[0]->{context} } sub iq_error { $_[0]->{iq_error} } sub string { my ($self) = @_; sprintf "iq auth error: '%s' %s", $self->context, ($self->context eq 'iq_error' ? $self->iq_error ()->string : '') }
1;