1Config::Model::ExceptioUns(e3r)Contributed Perl DocumentCaotnifoing::Model::Exception(3)
2
3
4
6 Config::Model::Exception - Exception mechanism for configuration model
7
9 version 2.136
10
12 use Config::Model::Exception;
13
14 # later
15 my $kaboom = 1;
16 Config::Model::Exception::Model->throw(
17 error => "Went kaboom",
18 object => $self
19 ) if $kaboom;
20
22 This module creates exception classes used by Config::Model.
23
24 All exception class name begins with "Config::Model::Exception"
25
26 The exception classes are:
27
28 "Config::Model::Exception"
29 Base class. It accepts an "object" argument. The user must pass the
30 reference of the object where the exception occurred. The object
31 name is used to generate the error message.
32
33 TODO: list all exception classes and hierarchy.
34
36 By default, most of the exceptions do not print out the stack trace.
37 For debug purpose, you can force a stack trace for all exception
38 classes:
39
40 Config::Model::Exception->Trace(1) ;
41
43 Dominique Dumont, (ddumont at cpan dot org)
44
46 Config::Model, Config::Model::Instance, Config::Model::Node,
47 Config::Model::Value
48
50 Dominique Dumont
51
53 This software is Copyright (c) 2005-2019 by Dominique Dumont.
54
55 This is free software, licensed under:
56
57 The GNU Lesser General Public License, Version 2.1, February 1999
58
59
60
61perl v5.30.0 2019-08-04 Config::Model::Exception(3)