1Parse::ErrorString::PerUls(e3r)Contributed Perl DocumentPaatrisoen::ErrorString::Perl(3)
2
3
4

NAME

6       Parse::ErrorString::Perl - Parse error messages from the perl
7       interpreter
8

SYNOPSIS

10           use Parse::ErrorString::Perl;
11
12           my $parser = Parse::ErrorString::Perl->new;
13           # or: my $parser = Parse::ErrorString::Perl->new(lang => 'FR')
14           # to get localized explanations
15           my @errors = $parser->parse_string($string_containing_stderr_output);
16
17           foreach my $error(@errors) {
18           print 'Captured error message "' .
19               $error->message .
20               '" in file ' . $error->file .
21               ' on line ' . $error->line . "\n";
22           }
23

METHODS

25       new(lang => $lang)
26           Constructor. Receives an optional "lang" parameter, specifying that
27           error explanations need to be delivered in a language different
28           from the default (i.e. English). Will try to load
29           "POD2::$lang::perldiag".
30
31       parse_string($string)
32           Receives an error string generated from the perl interpreter and
33           attempts to parse it into a list of
34           "Parse::ErrorString::Perl::ErrorItem" objects providing information
35           for each error.
36

SEE ALSO

38       splain <http://perldoc.perl.org/splain.html>
39

ACKNOWLEDGEMENTS

41       Part of this module is based on code from splain
42       <http://perldoc.perl.org/splain.html>.
43

SUPPORT

45       You can find documentation for this module with the perldoc command.
46
47           perldoc Parse::ErrorString::Perl
48

AUTHOR

50       Petar Shangov, <pshangov at yahoo.com>
51
53       Copyright 2008-2013 The Padre development team as listed in Padre.pm.
54       <http://padre.perlide.org/>
55

LICENSE

57       This program is free software; you can redistribute it and/or modify it
58       under the same terms as Perl 5 itself.
59

DISCLAIMER OF WARRANTY

61       BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
62       FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
63       WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
64       PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
65       EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
66       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
67       ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
68       YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
69       NECESSARY SERVICING, REPAIR, OR CORRECTION.
70
71       IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
72       WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
73       REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
74       TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
75       CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
76       SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
77       RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
78       FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
79       SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
80       DAMAGES.
81
82
83
84perl v5.34.0                      2022-01-21       Parse::ErrorString::Perl(3)
Impressum