Zonema...:Error(3pm)
π Zonemaster::Engine::Normalization::Error β the normalization error class β¨
okay bestie so real quick: this page is Zonema...:Error(3pm) from the User Contributed Perl Documentation, and it's literally just the error class that Zonemaster::Engine::Normalization throws around when something's wrong. it's giving "small module, big feelings". π
πΈ NAME πΈ
Zonemaster::Engine::Normalization::Error β the normalization error class. that's it, that's the whole name, we love a short king π
π SYNOPSIS π
here's the vibe, copy it exactly, no cap:
use Zonemaster::Engine::Normalization::Error;
my $error = Zonemaster::Engine::Normalization::Error->new(LABEL_TOO_LONG => {label => $label});
likeβ¦ you pull in the class, you make a new error object, you pass it a tag and a lil hashref of params, and boom β you got an error. iconic behaviour fr fr π¦
π§ ATTRIBUTES π§
tagβ the message tag that's associated with the error. it's basically the error's β¨name tagβ¨ at the party.paramsβ the error message parameters you're gonna use in the message string. so when the message gets built, these are the lil pieces of info that get slotted in. π
π METHODS π
new($tag, $params)β creates and returns a brand new error object. but bestie, heads up: this function will croak if there's a missing parameter for the given tag. so likeβ¦ give it everything it needs or it WILL yell at you. no tiny violins. πmessageβ returns the translated error message, using the parameters you handed over when you created the object. translation go brrr πtagβ returns the message tag that's associated with the error. same energy as the attribute above, just here in method form β¨stringβ returns a string representation of the error object. it's equivalent tomessage(), so like, same thing, different door. pick whichever one sparks joy π«Ά
ngl this module is tiny, but it's doing the most with what it has and honestly? obsessed. π₯
okay babes, that's the whole page π this was Zonema...:Error(3pm) from perl v5.40.1, dated 2026-03-21, part of the User Contributed Perl Documentation. mwah, go normalize something, stay hydrated, and don't forget to pass your params πβ¨π
π¦ where this page comes from
- ubuntu stonking: libzonemaster-perl 8.001.001-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms