Zonema...ception(3pm)
π NAME π
Zonemaster::Exception β bestie, it's the base class for Zonemaster exceptions π
Like, every other exception in the Zonemaster fam inherits its whole vibe from this one. It's the mother of all oopsies. The blueprint. The blueprint of "something went wrong bestie" π
β¨ SYNOPSIS β¨
die Zonemaster::Exception->new({ message => "This is an exception" });
That's it. That's the whole thing. You just die with a new exception object and pass it a message in a hashref, and boom π₯ you're throwing an exception like a main character.
π¦ ATTRIBUTES π¦
messageβ a string attribute, babes. It holds a message for possible human consumption π like it's literally a note to whoever's reading the error later. Feed it words, it holds the words. That's the whole job. Slay.
πΈ METHODS πΈ
string()β this one stringifies the object by handing you back themessageattribute. And here's the tea: stringification is overloaded to this β¨ so when Perl needs to turn your exception into a string, it doesn't fumble β it just calls this and gives you the message. No cap, it just works π
fr fr, that's the entire module. Small, iconic, does exactly one thing and does it well π«Ά
Okay so the ~vibes~ on this one: it's from the User Contributed Perl Documentation, living in the 3pm section, shipped with perl v5.32.0, and this particular page is dated 2021-01-06 π
Zonemaster::Exception β periodt. πβ¨π
π¦ where this page comes from
- ubuntu jammy: libzonemaster-perl 1.0.16-2.1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms