Config::Model::Exception(3pm)

Config::Model::Exception3pm

Exception mechanism for configuration model

Usage

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

Version

version 2.155

Overview

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

Dominique Dumont, (ddumont at cpan dot org)

Author

Dominique Dumont

From libconfig-model-perl 2.155-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.