Perl::...tPolicy(3pm)

πŸ’… Perl::Critic::Exception::Configuration::NonExistentPolicy(3pm)

okay so bestie, this is a page from the User Contributed Perl Documentation and it's literally about one very specific little drama queen of an exception class: Perl::Critic::Exception::Configuration::NonExistentPolicy. yes that name is a whole paragraph, no we are not shortening it, it's iconic πŸ’…


✨ NAME ✨

Perl::Critic::Exception::Configuration::NonExistentPolicy β€” the exception you get when your configuration went and referred to a policy that does not exist. like, girl, that policy is not in the group chat. 🫢


🌸 DESCRIPTION 🌸

So here's the vibe: this class is a whole representation of the situation where the configuration is trying to name a Perl::Critic::Policy that is simply not known. Not a real one. A ghost. πŸ‘»

And bestie, it doesn't matter where that config came from β€” it could be from a .perlcriticrc, or from another profile file, or straight off the command line. Same exception, same energy, fr fr. πŸ”₯


πŸ‘‘ INTERFACE SUPPORT πŸ‘‘

This one is considered a public class. meaning: if anybody ever wants to change its interface, they have to go through a whole deprecation cycle first. no surprise-breaking-changes, no cap. πŸŽ€


⭐ CLASS METHODS ⭐

  • throw( policy => $policy ) β€” go read "throw" in Exception::Class, that's where the real lore lives πŸ“š
  • new( policy => $policy ) β€” same deal, see "new" in Exception::Class ✨

πŸ¦‹ METHODS πŸ¦‹

  • full_message() β€” hands you a standard message. that's the whole thing. see "full_message" in Exception::Class for the details, iykyk πŸ’œ

🌈 AUTHOR 🌈

Elliot Shank <perl@galumph.com> β€” shoutout, legend behaviour πŸ‘‘


Copyright (c) 2007-2011 Elliot Shank.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.


okay that's the whole page, you ate that πŸ“ and just so you know, this beauty is from perl v5.42.0, dated 2024-10-23 β€” so go forth and configure responsibly, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from