1Test2::EventFacet::ErroUrs(e3r)Contributed Perl DocumentTaetsito2n::EventFacet::Error(3)
2
3
4

NAME

6       Test2::EventFacet::Error - Facet for errors that need to be shown.
7

DESCRIPTION

9       This facet is used when an event needs to convey errors.
10

NOTES

12       This facet has the hash key 'errors', and is a list of facets instead
13       of a single item.
14

FIELDS

16       $string = $error->{details}
17       $string = $error->details()
18           Explanation of the error, or the error itself (such as an
19           exception). In perl exceptions may be blessed objects, so this
20           field may contain a blessed object.
21
22       $short_string = $error->{tag}
23       $short_string = $error->tag()
24           Short tag to categorize the error. This is usually 10 characters or
25           less, formatters may truncate longer tags.
26
27       $bool = $error->{fail}
28       $bool = $error->fail()
29           Not all errors are fatal, some are displayed having already been
30           handled. Set this to true if you want the error to cause the test
31           to fail. Without this the error is simply a diagnostics message
32           that has no effect on the overall pass/fail result.
33

SOURCE

35       The source code repository for Test2 can be found at
36       http://github.com/Test-More/test-more/.
37

MAINTAINERS

39       Chad Granum <exodist@cpan.org>
40

AUTHORS

42       Chad Granum <exodist@cpan.org>
43
45       Copyright 2018 Chad Granum <exodist@cpan.org>.
46
47       This program is free software; you can redistribute it and/or modify it
48       under the same terms as Perl itself.
49
50       See http://dev.perl.org/licenses/
51
52
53
54perl v5.28.0                      2018-08-13       Test2::EventFacet::Error(3)
Impressum