Config...eption(3pm)

Config::Model::Exception πŸ’₯

okay bestie, welcome to the manual page for Config...eption(3pm) β€” yes that's the mangled-up name your terminal gives it because tldr it's Config::Model::Exception, the exception mechanism for configuration model πŸŽ€

VERSION ✨

version 2.166 β€” that's the one, no cap πŸ’…


SYNOPSIS πŸ¦‹

use  Config::Model::Exception;

# later
my $kaboom = 1;
Config::Model::Exception::Model->throw(
    error  => "Went kaboom",
    object => $self
) if $kaboom;

like. yes. it literally goes kaboom. iconic behavior fr πŸ’€


DESCRIPTION 🌸

so this module creates exception classes that Config::Model uses. that's the whole vibe.

Every single exception class name starts with Config::Model::Exception. periodt. that's the naming convention and we respect it πŸ‘‘

here are the exception classes, bestie:

  • "Config::Model::Exception" β€” this one is the base class πŸ‘‘. it accepts an "object" argument, and like, you have to pass it the reference of the object where the exception happened. no object, no message. the object's name is then used to generate the error message. that's the deal 🫢
TODO: list all exception classes and hierarchy. yeah bestie the docs said TODO, we're all just living in the mystery for now 😭

How to get trace πŸ”βœ¨

okay so by default, most of the exceptions do NOT print out the stack trace. like. they're keeping it lowkey. πŸ™ˆ

but for debug purposes, you can force a stack trace for all exception classes at once:

Config::Model::Exception->Trace(1) ;

boom. now everything's talking. good luck and godspeed 🧚


AUTHOR πŸ’œ

Dominique Dumont, (ddumont at cpan dot org) 🫢


SEE ALSO πŸ‘€

Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Value β€” go read those next, bestie, they're all part of the same little family 🌈


AUTHOR πŸ’–

Dominique Dumont β€” yes again, they really said it twice and honestly? deserved πŸ‘‘


This software is Copyright (c) 2005-2022 by Dominique Dumont.

This is free software, licensed under:

The GNU Lesser General Public License, Version 2.1, February 1999

and that's the whole page, bestie πŸ’… this was Config...eption(3pm) from the User Contributed Perl Documentation, churned out by perl v5.42.3 on 2026-07-23 πŸŽ€ go forth and throw your exceptions responsibly, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from