ghenry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Master Monks,
I would like some advice on creating a MyModule::Base class and MyModule::Exception class.
I know of Exception:Class, but just want some Best Practices ( I have the Perl Best Practices book, so I'll be reading up on the Errors chapter too) on how to go about it.
Basically I want to put a constructor in my Base class and a debug and error method in the Base class which use the MyModule::Exception class, to be used by the rest of my modules in the distribution.
Any good module or nodes to reference?
All advice greatly appreciated.
Thanks,
Gavin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advice on a Base and Exception Class
by perrin (Chancellor) on Jan 18, 2006 at 19:47 UTC | |
by ghenry (Vicar) on Jan 18, 2006 at 22:07 UTC | |
|
Re: Advice on a Base and Exception Class
by dragonchild (Archbishop) on Jan 18, 2006 at 19:17 UTC | |
by ghenry (Vicar) on Jan 18, 2006 at 22:07 UTC |