WWW::Postini::Exception - Enhanced exception class
use WWW::Postini::Exception; throw WWW::Postini::Exception('The sky is falling!');
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.
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 the cause of the existing exception object.
die()
$arg
cause
Alternatively, if %args is passed with a cause attribute, that value will be set to the cause of the exception object.
%args
For all other parameter-passing conventions of the throw() method, please refer to Exception::Class.
throw()
Get or set the cause of the exception.
Returns the exception object that caused the current exception. If $object is set, the original exception's cause is updated to reflect the new value.
$object
WWW::Postini, Exception::Class
Peter Guzis, <pguzis@cpan.org>
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.
To install WWW::Postini, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Postini
CPAN shell
perl -MCPAN -e shell install WWW::Postini
For more information on module installation, please visit the detailed CPAN module installation guide.