ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-XMPP2/lib/Net/XMPP2/Error/Parser.pm
Revision: 1.1
Committed: Sat Jul 7 12:39:45 2007 UTC (19 years, 2 months ago) by elmex
Branch: MAIN
Log Message:
fixed some bugs, redesigned disco mechanism, probably added some bugs,
added samples/disco_test example.

File Contents

# User Rev Content
1 elmex 1.1 package Net::XMPP2::Error::Parser;
2     use Net::XMPP2::Error;
3     our @ISA = qw/Net::XMPP2::Error/;
4    
5     =head1 NAME
6    
7     Net::XMPP2::Error::Parser - XML parse errors
8    
9     Subclass of L<Net::XMPP2::Error>
10    
11     =cut
12    
13     sub init {
14     my ($self) = @_;
15     }
16    
17     =head2 METHODS
18    
19     =item B<exception ()>
20    
21     Returns the XML parser exception.
22    
23     =cut
24    
25     sub exception { return $_[0]->{exception} }
26    
27     =item B<data ()>
28    
29     Returns the errornous data.
30    
31     =cut
32    
33     sub data { $_[0]->{data} }
34    
35     sub string {
36     my ($self) = @_;
37    
38     sprintf ("xml parse error: exception: %s, data: [%s]",
39     $self->exception,
40     $self->data)
41     }
42    
43     =back
44    
45     =cut
46    
47    
48     =head1 AUTHOR
49    
50     Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
51    
52     =head1 COPYRIGHT & LICENSE
53    
54     Copyright 2007 Robin Redeker, all rights reserved.
55    
56     This program is free software; you can redistribute it and/or modify it
57     under the same terms as Perl itself.
58    
59     =cut
60    
61     1; # End of Net::XMPP2