logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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