Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Test2::Event::Exception - Exception event

Authors

Chad Granum <exodist@cpan.org>

Caveats

Be aware that all exceptions are stringified during construction.

Description

An exception event will display to STDERR, and will prevent the overall test file from passing.

Maintainers

Chad Granum <exodist@cpan.org>

Methods

Inherits from Test2::Event. Also defines: $reason = $e->error The reason for the exception.

Name

Test2::Event::Exception - Exception event

Source

The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>.

Synopsis

use Test2::API qw/context/; use Test2::Event::Exception; my $ctx = context(); my $event = $ctx->send_event('Exception', error => 'Stuff is broken');

See Also