Test::...::Error(3pm)
π 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
- fedora 43: perl-Test-Run 0.0306-3.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms