Test2::Event::Exception(3p) Perl Programmers Reference Guide
Test2::Event::Exception(3p) Perl Programmers Reference Guide # Test2::Event::Exception(3p) Perl Programmers Reference Guide NNAAMMEE # Test2::Event::Exception - Exception event DDEESSCCRRIIPPTTIIOONN # An exception event will display to STDERR, and will prevent the overall test file from passing. SSYYNNOOPPSSIISS # use Test2::API qw/context/; use Test2::Event::Exception; my $ctx = context(); my $event = $ctx->send_event('Exception', error => 'Stuff is broken'); MMEETTHHOODDSS # Inherits from Test2::Event. Also defines: $reason = $e->error The reason for the exception. ...