藤 吾郎 > Data-Util-0.59 > Data::Util::Error

Download:
Data-Util-0.59.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Source   Latest Release: Data-Util-0.63

NAME ^

Data::Util::Error - Deals with class-specific error handlers in Data::Util

SYNOPSIS ^

        package Foo;
        use Data::Util::Error sub{ Foo::InvalidArgument->throw_error(@_) };
        use Data::Util qw(:validate);

        sub f{
                my $x_ref = array_ref shift; # Foo::InvalidArgument is thrown if invalid
                # ...
        }

Functions ^

Data::Util::Error->fail_handler()
Data::Util::Error->fail_handler($handler)
Data::Util::Error::croak(@args)

SEE ALSO ^

Data::Util.

syntax highlighting: