View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Michal Josef Špaček > Error-Pure-HTTP-0.15 > Error::Pure::HTTP::AllError

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

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.15   Source  

NAME ^

Error::Pure::HTTP::AllError - Error::Pure module with full backtrace over HTTP.

SYNOPSIS ^

 use Error::Pure::HTTP::AllError 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::AllError qw(err);

 # Error.
 err "This is a fatal error.", "name", "value";

 # Output like this:
 # Content-type: text/plain
 #
 # ERROR: This is a fatal error.
 # name: value
 # main  err  ./script.pl  12

EXAMPLE2 ^

 use strict;
 use warnings;

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

 # Print before.
 print "Before\n";

 # Error.
 err "This is a fatal error.", "name", "value";

 # Print after.
 print "After\n";

 # Output like this:
 # Before
 # Content-type: text/plain
 #
 # ERROR: This is a fatal error.
 # name: value
 # main  err  ./script.pl  12
 # After

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-HTTP

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: