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 to message(), 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