| AnyEvent-XMPP documentation | Contained in the AnyEvent-XMPP distribution. |
AnyEvent::XMPP::Error::Exception - Some exception was thrown somewhere
Subclass of AnyEvent::XMPP::Error
This returns the exception object that was thrown in $@.
This returns a string which describes the context in which this exception was thrown
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::Exception; use AnyEvent::XMPP::Error; use strict; our @ISA = qw/AnyEvent::XMPP::Error/;
sub exception { $_[0]->{exception} }
sub context { $_[0]->{context} } sub string { my ($self) = @_; sprintf "exception in context '%s': %s", $self->context, $self->exception }
1; # End of AnyEvent::XMPP