NAME
Error::Pure - Perl module for structured errors.
SYNOPSIS
err
'This is a fatal error'
,
'name'
,
'value'
;
DESCRIPTION
Error::Pure system is replacement for usage of Perl die
or Carp croak
.
Main features are:
Structured and defined output
Stack trace support inside
Full description of intent is in Error::Pure::Intent.
SUBROUTINES
err
err
'This is a fatal error'
,
'name'
,
'value'
;
Process error with message(s). There is key => value list after first message.
VARIABLES
$LEVEL
-
Error level
for
Error::Pure.
Default value is 4.
$TYPE
-
Available are
last
names in Error::Pure::* modules.
Error::Pure::ErrorList means
'ErrorList'
.
Default value is
'Die'
.
Precedence:
1)
$Error::Pure::TYPE
2)
$ENV
{
'ERROR_PURE_TYPE'
}
3)
$Error::Pure::TYPE_DEFAULT
=
'Die'
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
EXAMPLE5
DEPENDENCIES
English, Error::Pure::Utils, Exporter, Readonly.
SEE ALSO
- Task::Error::Pure
-
Install the Error::Pure modules.
ACKNOWLEDGMENTS
Jakub Špičak and his Masser (http://masser.sf.net).
REPOSITORY
https://github.com/michal-josef-spacek/Error-Pure
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2008-2024 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.34