Test2::Event::Exception3p
Exception event
Usage
use Test2::API qw/context/;use Test2::Event::Exception;my $ctx = context();my $event = $ctx->send_event('Exception', error => 'Stuff is broken');
Overview
An exception event will display to STDERR, and will prevent the overall test file from passing.
Methods
Inherits from Test2::Event. Also defines:
- $reason = $e->error
-
The reason for the exception.
Caveats
Be aware that all exceptions are stringified during construction.
Source
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>.
Maintainers
- Chad Granum <[email protected]>
Releases
17 releases since OpenBSD 6.5; the text changed 11 times.