The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package AnyEvent::XMPP::Error::Register;
use AnyEvent::XMPP::Error;
use strict;
our @ISA = qw/AnyEvent::XMPP::Error::IQ/;

=head1 NAME

AnyEvent::XMPP::Error::Register - In-band registration error

Subclass of L<AnyEvent::XMPP::Error::IQ>

=cut

=head1 DESCRIPTION

This is a In-band registration error. For a mapping
of IQ error values to their meaning please consult
XEP-0077 for now.

=head1 METHODS

=over 4

=item B<register_state ()>

Returns the state of registration, one of:

   register
   unregister
   submit

=cut

sub register_state {
   my ($self) = @_;
   $self->{register_state}
}

sub string {
   my ($self) = @_;

   sprintf "ibb registration error (in %s): %s",
      $self->register_state,
      $self->SUPER::string
}

=back

=head1 AUTHOR

Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>

=head1 COPYRIGHT & LICENSE

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.

=cut

1; # End of AnyEvent::XMPP