Test::...::Error(3pm)

πŸ“¦
version 0.0306 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Test::Run::Obj::Error β€” bestie, it's literally an error class hierarchy for Test::Run. Yes, the manual page is filed under Test::...::Error(3pm) because apparently we're being mysterious about it, and it lives in the User Contributed Perl Documentation section. Iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so listen. This module hands you an error class hierarchy for Test::Run. That's it, that's the whole vibe.

The point of it? It's for throwing exceptions that should be handled programatically. So like β€” not the "omg something went wrong, a human should read this and cry a little" kind of error. The kind your code catches, inspects, and deals with on its own. Main character energy but for eval blocks. 🫢


✨ METHODS ✨

πŸŽ€ BUILD

For Moose.

That's it. That's the description. Moose needs it, Moose gets it. πŸ’…

🌸 $self->stringify()

Stringifies the error. Returns the text() field by default.

So when you call it, out comes the error as a string, and unless something's overridden, the thing it gives you back is whatever's sitting in text(). Simple, clean, no notes. ✨


πŸ“œ LICENSE πŸ“œ

This file is licensed under the MIT X11 License:

http://www.opensource.org/licenses/mit-license.php

And that's the whole page, bestie β€” no cap. This little gem came to you via perl v5.42.0, dated 2025-07-25, straight out of the User Contributed Perl Documentation collection. Go forth and handle your exceptions programmatically, you absolute queen. πŸ‘‘πŸ’–

πŸ“¦ where this page comes from