XMPP/Error/Message.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« XMPP/Error/IQ.pm ↑ Summary XMPP/IM/Connection.pm »
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
« XMPP/Error/IQ.pm ↑ Summary XMPP/IM/Connection.pm »