ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-XMPP2/lib/Net/XMPP2/Error/Parser.pm
Revision: 1.2
Committed: Wed Jul 11 20:56:49 2007 UTC (19 years, 2 months ago) by elmex
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -0 lines
Log Message:
finished up the next release.

File Contents

# Content
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 =over 4
20
21 =item B<exception ()>
22
23 Returns the XML parser exception.
24
25 =cut
26
27 sub exception { return $_[0]->{exception} }
28
29 =item B<data ()>
30
31 Returns the errornous data.
32
33 =cut
34
35 sub data { $_[0]->{data} }
36
37 sub string {
38 my ($self) = @_;
39
40 sprintf ("xml parse error: exception: %s, data: [%s]",
41 $self->exception,
42 $self->data)
43 }
44
45 =back
46
47 =cut
48
49
50 =head1 AUTHOR
51
52 Robin Redeker, C<< <elmex at ta-sa.org> >>, JID: C<< <elmex at jabber.org> >>
53
54 =head1 COPYRIGHT & LICENSE
55
56 Copyright 2007 Robin Redeker, all rights reserved.
57
58 This program is free software; you can redistribute it and/or modify it
59 under the same terms as Perl itself.
60
61 =cut
62
63 1; # End of Net::XMPP2