View on
MetaCPAN
Michal Josef Špaček > Error-Pure-HTTP-0.15 > Error::Pure::ErrorList

Download:
Error-Pure-HTTP-0.15.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

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

SUBROUTINES ^

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

EXAMPLE1 ^

 use strict;
 use warnings;

 use Error::Pure::HTTP::ErrorList qw(err);

 # Error.
 err '1';

 # Output like this:
 # Content-type: text/plain
 #
 # #Error [script.pl:11] 1

EXAMPLE2 ^

 use strict;
 use warnings;

 use Error::Pure::HTTP::ErrorList qw(err);

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

 # Output like this:
 # Content-type: text/plain
 #
 # #Error [script.pl:11] 1

EXAMPLE3 ^

 use strict;
 use warnings;

 use English qw(-no_match_vars);
 use Error::Pure::HTTP::ErrorList qw(err);

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

 # Output like this:
 # Content-type: text/plain
 # 
 # #Error [script.pl:12] 1
 # #Error [script.pl:13] 2

DEPENDENCIES ^

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

SEE ALSO ^

Task::Error::Pure

Install the Error::Pure modules.

REPOSITORY ^

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

AUTHOR ^

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

http://skim.cz

LICENSE AND COPYRIGHT ^

 © 2012-2018 Michal Josef Špaček
 BSD 2-Clause License

VERSION ^

0.15

syntax highlighting: