WWW::Postini::Exception::InvalidParameter - Exception cause by failed


WWW-Postini documentation Contained in the WWW-Postini distribution.

Index


Code Index:

NAME

Top

WWW::Postini::Exception::InvalidParameter - Exception cause by failed type-checking

SYNOPSIS

Top

  use WWW::Postini::Exception::InvalidParameter;

  check(12);

  sub check {

    my $value = shift;

    if ($value > 10) {

      throw WWW::Postini::Exception::InvalidParameter('Value too high');

    }

  }

DESCRIPTION

Top

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.

Please refer to WWW::Postini::Exception for information regarding constructors and methods.

SEE ALSO

Top

WWW::Postini, WWW::Postini::Exception

AUTHOR

Top

Peter Guzis, <pguzis@cpan.org>

COPYRIGHT AND LICENSE

Top


WWW-Postini documentation Contained in the WWW-Postini distribution.

package WWW::Postini::Exception::InvalidParameter;

use strict;
use warnings;

use WWW::Postini::Exception;

use vars qw( @ISA $VERSION );

@ISA = qw( WWW::Postini::Exception );
$VERSION = '0.01';

1;

__END__