logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Config::Model::Exception - Exception mechanism for configuration model

Author

       Dominique Dumont

Description

       This module creates exception classes used by Config::Model.

       All exception class name begins with "Config::Model::Exception"

       The exception classes are:

       "Config::Model::Exception"
           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.

         TODO: list all exception classes and hierarchy.

How To Get Trace

       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) ;

Name

       Config::Model::Exception - Exception mechanism for configuration model

See Also

       Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Value

Synopsis

         use  Config::Model::Exception;

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

Version

       version 2.155

See Also