| AnyEvent-XMPP documentation | Contained in the AnyEvent-XMPP distribution. |
AnyEvent::XMPP::Error - Error class hierarchy for error reporting
die $error->string;
This module is a helper class for abstracting any kind of error that occurs in AnyEvent::XMPP.
You receive instances of these objects by various events.
AnyEvent::XMPP::Error - The super class of all errors
These methods are implemented by all subclasses.
Returns a humand readable string for this error.
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| AnyEvent-XMPP documentation | Contained in the AnyEvent-XMPP distribution. |
package AnyEvent::XMPP::Error; use strict; use AnyEvent::XMPP::Util qw/stringprep_jid prep_bare_jid/; use AnyEvent::XMPP::Error; use AnyEvent::XMPP::Error::SASL; use AnyEvent::XMPP::Error::IQ; use AnyEvent::XMPP::Error::Register; use AnyEvent::XMPP::Error::Stanza; use AnyEvent::XMPP::Error::Stream; use AnyEvent::XMPP::Error::Presence; use AnyEvent::XMPP::Error::Message; use AnyEvent::XMPP::Error::Parser; use AnyEvent::XMPP::Error::Exception; use AnyEvent::XMPP::Error::IQAuth;
sub new { my $this = shift; my $class = ref($this) || $this; my $self = bless { @_ }, $class; $self->init; $self } sub init { }
sub string { my ($self) = @_; $self->{text} }
1; # End of AnyEvent::XMPP