Exception::Argument - Thrown when called function or method with wrong argument
use Exception::Argument; sub method { my $self = shift; Exception::Argument->throw( message => 'Usage: $obj->method( STR )', ) if @_ < 1; my ($str) = @_; print $str; };
This class is an Exception::Base exception thrown when function or method was called with wrong argument.
Exception::Base
This class provides new attributes. See Exception::Base for other descriptions.
Contains the message of the exception. This class overrides the default value from Exception::Base class.
Exception::Base.
If you find the bug, please report it.
Piotr Roszatycki <dexter@debian.org>
Copyright (C) 2008 by Piotr Roszatycki <dexter@debian.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Fatal::Exception, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fatal::Exception
CPAN shell
perl -MCPAN -e shell install Fatal::Exception
For more information on module installation, please visit the detailed CPAN module installation guide.