1Test::Stream::Event::ExUcseeprtiCoonn(t3r)ibuted Perl DoTceusmte:n:tSattrieoanm::Event::Exception(3)
2
3
4
6 Test::Stream::Event::Exception - Exception event
7
9 This distribution is deprecated in favor of Test2, Test2::Suite, and
10 Test2::Workflow.
11
12 See Test::Stream::Manual::ToTest2 for a conversion guide.
13
15 An exception event will display to STDERR, and will prevent the overall
16 test file from passing.
17
19 use Test::Stream::Context qw/context/;
20 use Test::Stream::Event::Exception;
21
22 my $ctx = context();
23 my $event = $ctx->send_event('Exception', error => 'Stuff is broken');
24
26 Inherits from Test::Stream::Event. Also defines:
27
28 $reason = $e->error
29 The reason for the exception.
30
32 The source code repository for Test::Stream can be found at
33 http://github.com/Test-More/Test-Stream/.
34
36 Chad Granum <exodist@cpan.org>
37
39 Chad Granum <exodist@cpan.org>
40
42 Copyright 2015 Chad Granum <exodist7@gmail.com>.
43
44 This program is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47 See http://dev.perl.org/licenses/
48
49
50
51perl v5.28.1 2016-02-05 Test::Stream::Event::Exception(3)