Test2::...xception(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

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 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