| 1 | package AnyEvent::XMPP::Error::Message; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | no warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 0 | ▶ | use AnyEvent::XMPP::Error::Stanza; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 5 | our @ISA = qw/AnyEvent::XMPP::Error::Stanza/; | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | AnyEvent::XMPP::Error::Message - Message errors | ||
| 10 | |||
| 11 | Subclass of L<AnyEvent::XMPP::Error::Stanza> | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | sub string { | ||
| 16 | my ($self) = @_; | ||
| 17 | |||
| 18 | sprintf "message error: %s/%s (type %s): %s", | ||
| 19 | $self->code || '', | ||
| 20 | $self->condition || '', | ||
| 21 | $self->type, | ||
| 22 | $self->text | ||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | =head1 AUTHOR | ||
| 27 | |||
| 28 | Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >> | ||
| 29 | |||
| 30 | =head1 COPYRIGHT & LICENSE | ||
| 31 | |||
| 32 | Copyright 2007, 2008 Robin Redeker, all rights reserved. | ||
| 33 | |||
| 34 | This program is free software; you can redistribute it and/or modify it | ||
| 35 | under the same terms as Perl itself. | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 1; # End of AnyEvent::XMPP | ||