AnyEvent::XMPP::Error::Parser - XML parse errors


AnyEvent-XMPP documentation Contained in the AnyEvent-XMPP distribution.

Index


Code Index:

NAME

Top

AnyEvent::XMPP::Error::Parser - XML parse errors

Subclass of AnyEvent::XMPP::Error

METHODS

exception ()

Returns the XML parser exception.

data ()

Returns the errornous data.

AUTHOR

Top

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

COPYRIGHT & LICENSE

Top


AnyEvent-XMPP documentation Contained in the AnyEvent-XMPP distribution.
package AnyEvent::XMPP::Error::Parser;
use AnyEvent::XMPP::Error;
use strict;
our @ISA = qw/AnyEvent::XMPP::Error/;

sub init {
   my ($self) = @_;
}

sub exception { return $_[0]->{exception} }

sub data { $_[0]->{data} }

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

   sprintf ("xml parse error: exception: %s, data: [%s]",
      $self->exception,
      $self->data)
}

1; # End of AnyEvent::XMPP