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 π
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
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms