Mason:...eptions(3pm)
π Mason::Exceptions β the tea on Mason's exception objects π
okay bestie, welcome to Mason::Exceptions (3pm), from the User Contributed Perl Documentation pile π«Ά this one is short but it's giving important, so let's get into it β¨
β¨ NAME β¨
Mason::Exceptions β the exception objects that Mason throws at you, no cap π
πΈ DESCRIPTION πΈ
so here's the vibe: this module is the one that creates the exception classes that Mason uses π
and here's the lil nuance that lowkey matters β Mason only throws exception objects when it genuinely needs to communicate something specific to whatever code is out there catching the exception π any other time? it's perfectly content to just die with a plain string. periodt. π
π¦ EXCEPTIONS π¦
here are the exception classes, one by one, no skipping π
Mason::Exception::Abort
this one means the $m->abort method got called π
and not me telling you β exceptions in this class contain the field aborted_value π that's where the value lives, bestie.
Mason::Exception::TopLevelNotFound
this one means the requested top level component that got passed to exec() could not be found π iconic behavior honestly.
and here's the practical part β in a web environment, you could use this to figure out that a 404 should be returned β slay.
π« SEE ALSO π«
Mason
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π«Ά (yes bestie, same terms as Perl 5 itself β that's the whole license, fr fr)
π okay that's the whole page, and for the record: this was perl v5.34.0, dated 2022-05-27, and the page itself is Mason:...eptions(3pm). mwah, go catch those exceptions π
β¨
π¦ where this page comes from
- debian bookworm: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms