NAME
Error::Pure::Die - Error::Pure module with classic die.
SYNOPSIS
err
'This is a fatal error'
,
'name'
,
'value'
;
SUBROUTINES
err
err
'This is a fatal error'
,
'name'
,
'value'
;
Process error with message(s). There is key => value list after first message.
EXAMPLE1
EXAMPLE2
EXAMPLE3
use
strict;
use
warnings;
use
Dumpvalue;
# Error in eval.
eval
{ err
'1'
,
'2'
,
'3'
; };
# Error structure.
my
@err
= err_get();
# Dump.
my
$dump
= Dumpvalue->new;
$dump
->dumpValues(\
@err
);
# In \@err:
# [
# {
# 'msg' => [
# '1',
# '2',
# '3',
# ],
# 'stack' => [
# {
# 'args' => '(1)',
# 'class' => 'main',
# 'line' => '9',
# 'prog' => 'script.pl',
# 'sub' => 'err',
# },
# {
# 'args' => '',
# 'class' => 'main',
# 'line' => '9',
# 'prog' => 'script.pl',
# 'sub' => 'eval {...}',
# },
# ],
# },
# ],
DEPENDENCIES
Exporter, List::Util, Readonly.
SEE ALSO
- Task::Error::Pure
-
Install the Error::Pure modules.
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