Perl::...uration(3pm)

🌸 NAME 🌸

okay so bestie, this page is Perl::...uration(3pm) from the User Contributed Perl Documentation, and the class on main character duty is Perl::Critic::Exception::AggregateConfiguration β€” a collection of a set of problems found in the configuration and/or command-line options. πŸ’… iykyk.

πŸ’– DESCRIPTION πŸ’–

A set of configuration settings can have multiple problems. This is an object for collecting all the problems found so that the user can see them in one run. The way this object just gathers every problem so you get the whole receipts in one run is iconic β€” literally built for the β€œshow me everything at once” vibe. ✨

🫢 INTERFACE SUPPORT 🫢

This is considered to be a public class. Any changes to its interface will go through a deprecation cycle. no cap, that’s the deal. 🫢

πŸ› οΈ METHODS πŸ› οΈ

okay, method time bestie β€” here’s the whole lineup:

  • add_exception( $exception ) β€” accumulate the parameter with the rest of the exceptions. adding to the pile, slay. πŸ’…
  • add_exceptions_from( $aggregate ) β€” accumulate the exceptions from another instance of this class. yes, it can collect from its own kind. πŸŒ€
  • exceptions() β€” returns a reference to an array of the collected exceptions. the receipts, as an array ref. πŸŽ€
  • add_exception_or_rethrow( $eval_error ) β€” if the parameter is an instance of Perl::Critic::Exception::Configuration or Perl::Critic::Exception::AggregateConfiguration, add it. Otherwise, "die" with the parameter, if it is a reference, or "confess" with it. If the parameter is false, simply returns. 🫢
  • has_exceptions() β€” answer whether any configuration problems have been found. vibe check for config problems. πŸ’–
  • full_message() β€” concatenate the exception messages. See "full_message" in Exception::Class. all the messages, joined up. πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Elliot Shank <perl@galumph.com> πŸ’Œ

Copyright (c) 2007-2023 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. πŸŽ€


signing off with perl v5.42.0, dated 2024-10-23, from Perl::...uration(3pm) β€” periodt bestie πŸ’…βœ¨

πŸ“¦ where this page comes from