Zonema...ception(3pm)

πŸ’– Zonemaster::Engine::Exception β€” the manual page, but make it cute πŸ’–

okay so bestie, welcome to Zonemaster::Engine::Exception(3pm) πŸ’… β€” this is User Contributed Perl Documentation, section 3pm, and it's the base class for Zonemaster::Engine exceptions. like, the origin story. the blueprint. the mother of all the little exception girls that come after her. πŸ‘‘


✨ NAME ✨

Zonemaster::Engine::Exception β€” bestie it is literally the base class for Zonemaster::Engine exceptions. everything else in that family inherits her vibe. periodt. πŸ’–


🌸 SYNOPSIS 🌸

the way you deploy her?? one line. one iconic line:

die Zonemaster::Engine::Exception->new({ message => "This is an exception" });

like. die, ->new, a hashref with a message, and boom β€” you have thrown an exception with main character energy. that's it. that's the whole move. πŸŽ€


πŸ¦‹ ATTRIBUTES πŸ¦‹

  • message β€” a string attribute holding a message for possible human consumption. πŸ’¬ basically it's the little note she carries around so an actual human can read it and go "oh. that's why everything broke." ngl very considerate of her. possible is doing a lot of heavy lifting there, so don't assume it's always for your eyes, iykyk. πŸ™ˆ

⭐ METHODS ⭐

  • string() β€” method that stringifies the object by returning the message attribute. and listen: stringification is overloaded to this. so when you just casually drop the object into a string context, she doesn't give you some cursed Zonemaster::Engine::Exception=HASH(0x...) nonsense β€” she gives you her message, because she knows what you actually wanted. she ate. 🫢
fr fr, that overload is the whole point β€” printed exception == the message you handed her. no cap. πŸ’―

and that's the page, bestie!! go forth and die responsibly πŸ’€ πŸŽ€

✨ this page is documented in perl v5.40.1, last dated 2026-03-21 ✨ β€” ty for coming to my ted talk, mwah πŸ’œπŸ’–πŸ¦‹

πŸ“¦ where this page comes from