1Parse::ErrorString::PerUls:e:rErCroonrtIrtiebmu(t3e)d PePralrsDeo:c:uEmrernotraSttiroinng::Perl::ErrorItem(3)
2
3
4

NAME

6       Parse::ErrorString::Perl::ErrorItem - a Perl error item object
7

DESCRIPTION

9       Each object contains the following accessors (only "message", "file",
10       and "line" are guaranteed to be present for every error):
11
12       type
13           Normally returns a single letter identifying the type of the error.
14           The possbile options are "W", "D", "S", "F", "P", "X", and "A".
15           Sometimes an error can be of either of two types, in which case a
16           string such as ""S|F"" is returned in scalar context and a list of
17           the two letters is returned in list context. If "type" is empty,
18           you can assume that the error was not emitted by perl itself, but
19           by the user or by a third-party module.
20
21       type_description
22           A description of the error type. The possible options are:
23
24               W => warning
25               D => deprecation
26               S => severe warning
27               F => fatal error
28               P => internal error
29               X => very fatal error
30               A => alien error message
31
32           If the error can be of either or two types, the two types are
33           concactenated with "" or "". Note that this description is always
34           returned in English, regardless of the "lang" option.
35
36       message
37           The error message.
38
39       file
40           The path to the file in which the error occurred, possibly
41           truncated. If the error occurred in a script, the parser will
42           attempt to return only the filename; if the error occurred in a
43           module, the parser will attempt to return the path to the module
44           relative to the directory in @INC in which it resides.
45
46       file_abspath
47           Absolute path to the file in which the error occurred.
48
49       file_msgpath
50           The file path as displayed in which the error message.
51
52       line
53           Line in which the error occurred.
54
55       near
56           Text near which the error occurred (note that this often contains
57           newline characters).
58
59       at  Additional information about where the error occurred (e.g. ""at
60           EOF"").
61
62       diagnostics
63           Detailed explanation of the error (from perldiag). If the "lang"
64           option is specified when constructing the parser, an attempt will
65           be made to return the diagnostics message in the appropriate
66           language. If an explanation is not found in the localized perldiag,
67           the default perldiag will also be searched. Returned as raw pod, so
68           you may need to use a pod parser to render into the format you
69           need.
70
71       stack
72           Callstack for the error. Returns a list of
73           Parse::ErrorString::Perl::StackItem objects.
74
75       # Copyright 2008-2013 The Padre development team as listed in Padre.pm.
76       # LICENSE # This program is free software; you can redistribute it
77       and/or # modify it under the same terms as Perl 5 itself.
78
79
80
81perl v5.32.0                      2020-07P-a2r8se::ErrorString::Perl::ErrorItem(3)
Impressum