Config::Model::Exception - Exception mechanism for configuration model
version 2.115
use Config::Model::Exception; # later my $kaboom = 1; Config::Model::Exception::Model->throw( error => "Went kaboom", object => $self ) if $kaboom;
This module creates exception classes used by Config::Model.
All exception class name begins with Config::Model::Exception
Config::Model::Exception
The exception classes are:
Base class. It accepts an object argument. The user must pass the reference of the object where the exception occurred. The object name is used to generate the error message.
object
TODO: list all exception classes and hierarchy.
By default, most of the exceptions do not print out the stack trace. For debug purpose, you can force a stack trace for all exception classes:
Config::Model::Exception->Trace(1) ;
Dominique Dumont, (ddumont at cpan dot org)
Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Value
Dominique Dumont
This software is Copyright (c) 2005-2017 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
To install Config::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model
CPAN shell
perl -MCPAN -e shell install Config::Model
For more information on module installation, please visit the detailed CPAN module installation guide.