Config::Model::Exception - Exception mechanism for configuration model
version 2.060
# internal
You must read Exception::Class before reading on.
This module creates all the exception class used by Config::Model.
All exception class name begins with Config::Model::Exception::
Config::Model::Exception::
The exception classes are:
Any
Base class. It accepts an object argument. The user must pass the reference of the object where the exception occurred. The object name will be used to generate the error message.
object
TODO: list all exception classes and hierarchy.
By default, most of the exceptions will not print out the stack trace. For debug purpose, you can force a stack trace.
For instance, if you want a stack trace for an "unknown element" error, you must add this line in your script:
Config::Model::Exception::UnknownElement->Trace(1) ;
If you're not sure which class to trace, add this line in your script:
Config::Model::Exception::Any->Trace(1) ;
Dominique Dumont, (ddumont at cpan dot org)
Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Value Exception::Class
Dominique Dumont
This software is Copyright (c) 2014 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.