Michal Špaček > Error-Pure-0.13 > Error::Pure::ErrorList

Download:
Error-Pure-0.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.13   Source   Latest Release: Error-Pure-0.21

NAME ^

Error::Pure::ErrorList - Error::Pure module with list of errors in one line with informations.

SYNOPSIS ^

 use Error::Pure::ErrorList qw(err);
 err "This is a fatal error.", "name", "value";

SUBROUTINES ^

err(@messages)
 Process error with messages @messages.

EXAMPLE1 ^

 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use Error::Pure::ErrorList qw(err);

 # Error.
 err '1';

 # Output:
 # #Error [example1.pl:9] 1

EXAMPLE2 ^

 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use Error::Pure::ErrorList qw(err);

 # Error.
 err '1', '2', '3';

 # Output:
 # #Error [example2.pl:9] 1

EXAMPLE3 ^

 # Pragmas.
 use strict;
 use warnings;

 # Modules.
 use English qw(-no_match_vars);
 use Error::Pure::ErrorList qw(err);

 # Error.
 eval { err "1"; };
 if ($EVAL_ERROR) {
        err "2";
 }

 # Output:
 # #Error [example3.pl:10] 1
 # #Error [example3.pl:11] 2

DEPENDENCIES ^

Error::Pure::Utils, Error::Pure::Output::Text, Exporter, List::MoreUtils, Readonly.

SEE ALSO ^

Error::Pure, Error::Pure::AllError, Error::Pure::Die, Error::Pure::Error, Error::Pure::HTTP::AllError, Error::Pure::HTTP::Error, Error::Pure::HTTP::ErrorList, Error::Pure::HTTP::Print, Error::Pure::Output::Text, Error::Pure::Print, Error::Pure::Utils.

REPOSITORY ^

https://github.com/tupinek/Error-Pure

AUTHOR ^

Michal Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT ^

BSD license.

VERSION ^

0.13

syntax highlighting: