NAME
WWW::Postini::Exception - Enhanced exception class
SYNOPSIS
use WWW::Postini::Exception;
throw WWW::Postini::Exception('The sky is falling!');
DESCRIPTION
Based on Exception::Class, this module adds support for recursive exception throwing. This permits exceptions to be caused by other exceptions, in a way very similar to Java's exceptions.
OBJECT METHODS
- throw($arg)
- throw(%args)
-
Creates a new WWW::Postini::Exception object and
die()
s with it. If$arg
is an instance of Exception::Class::Base, either directly or by way of subclassing,$arg
will be set as thecause
of the existing exception object.Alternatively, if
%args
is passed with acause
attribute, that value will be set to thecause
of the exception object.For all other parameter-passing conventions of the
throw()
method, please refer to Exception::Class. - cause()
- cause($object)
-
Get or set the cause of the exception.
Returns the exception object that caused the current exception. If
$object
is set, the original exception'scause
is updated to reflect the new value.
SEE ALSO
WWW::Postini, Exception::Class
AUTHOR
Peter Guzis, <pguzis@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2005 by Peter Guzis
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
Postini, the Postini logo, Postini Perimeter Manager and preEMPT are trademarks, registered trademarks or service marks of Postini, Inc. All other trademarks are the property of their respective owners.