AnyEvent::XMPP::Error::Exception - Some exception was thrown somewhere


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

Index


Code Index:

NAME

Top

AnyEvent::XMPP::Error::Exception - Some exception was thrown somewhere

Subclass of AnyEvent::XMPP::Error

METHODS

exception

This returns the exception object that was thrown in $@.

context

This returns a string which describes the context in which this exception was thrown

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::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