Test2::...xception(3)
okay bestie, welcome to the Test2::...xception(3) page from User Contributed Perl Documentation β the actual module is Test2::Event::Exception, and it's literally the exception event page. let's get into it π
β¨
πΈ NAME πΈ
Test2::Event::Exception β Exception event
β¨ DESCRIPTION β¨
An exception event is gonna show up on STDERR, and it will prevent the overall test file from passing. no cap, that's the whole vibe: it's loud, it's visible, and it blocks the pass. ππ
π SYNOPSIS π
use Test2::API qw/context/;
use Test2::Event::Exception;
my $ctx = context();
my $event = $ctx->send_event('Exception', error => 'Stuff is broken');
π¦ METHODS π¦
Inherits from Test2::Event. Also defines:
$reason = $e->errorβ the reason for the exception. that's it, that's the method. π
β οΈ CAVEATS β οΈ
Heads up, bestie: be aware that all exceptions are stringified during construction. so the exception gets stringified when it's constructed β do not forget, okay? π«Ά
π₯ SOURCE π₯
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>.
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <https://dev.perl.org/licenses/>.
That's the whole page! cute sign-off: this is from perl v5.42.0, dated 2025-07-28, and it's the Test2::...xception(3) manual page. byeee π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms