WWW::Postini::Exception::InvalidParameter - Exception cause by failed type-checking
use WWW::Postini::Exception::InvalidParameter; check(12); sub check { my $value = shift; if ($value > 10) { throw WWW::Postini::Exception::InvalidParameter('Value too high'); } }
Some methods within WWW::Postini attempt a level of runtime type-checking. When a malformed parameter is passed to any such methods, a WWW::Postini::Exception::InvalidParameter exception is thrown with the appropriate reason.
There is some overhead to this method, but it provides much more information than die()ing with some cryptic message or return()ing undef with no reason.
die()
return()
undef
Please refer to WWW::Postini::Exception for information regarding constructors and methods.
WWW::Postini, WWW::Postini::Exception
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.