Test2::...::Error(3pm)

πŸ’– NAME

Okay so this manual page is for Test2::EventFacet::Error(3pm) β€” literally the facet for errors that need to be shown, bestie. πŸ’…


🌸 DESCRIPTION

This facet is the one you reach for when an event needs to convey errors. It’s giving β€œerror-carrying main character energy.” 😭✨


πŸŽ€ NOTES

Heads up, bestie: this facet has the hash key 'errors', and it is a list of facets instead of a single item. Not me being a whole array of drama. πŸ’€


✨ FIELDS

  • $string = $error->{details} / $string = $error->details() β€” Explanation of the error, or the error itself (such as an exception). In perl exceptions may be blessed objects, so this field may contain a blessed object. 🫢
  • $short_string = $error->{tag} / $short_string = $error->tag() β€” Short tag to categorize the error. This is usually 10 characters or less, formatters may truncate longer tags. Keep it cute and short, iykyk. πŸŽ€
  • $bool = $error->{fail} / $bool = $error->fail() β€” Not all errors are fatal, some are displayed having already been handled. Set this to true if you want the error to cause the test to fail. Without this the error is simply a diagnostics message that has no effect on the overall pass/fail result. So yeah, this bool is the difference between β€œjust saying” and β€œactually failing the test.” πŸ’€

πŸ”— SOURCE

The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go off, repo. πŸ‘‘


πŸ‘‘ MAINTAINERS

Chad Granum <exodist@cpan.org> β€” iconic maintainer behavior. 🫢


🫢 AUTHORS

Chad Granum <exodist@cpan.org> β€” yes, same legend, still serving. ✨


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


Bye bestie! 🫢 This page is from perl v5.42.3, dated 2026-11-03, and it’s the Test2::...::Error(3pm) manual page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from