Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a framework (say Foo::Bar) with many modules that report errors through a method in Foo::Bar::Error.
As I want to report errors from the perspective of the user, I'm using Carp, and setting @Foo::Bar::Error::CARP_NOT to the complete list of modules under, and including Foo::Bar.
Unfortunately this list of modules is constantly changing and its easy to get @CARP_NOT out of sync.
Are there any pre-existing solutions to this problem, or am I going to have to pratt around with stack traces or generate the complete list of Foo::Bar modules by hand whenever it changes?
Suggestions gratefully received.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a more elegant existing solution than @CARP_NOT
by adrianh (Chancellor) on May 03, 2004 at 00:10 UTC | |
|
Re: Is there a more elegant existing solution than @CARP_NOT
by Anomynous Monk (Scribe) on May 02, 2004 at 23:34 UTC | |
|
Re: Is there a more elegant existing solution than @CARP_NOT
by Anonymous Monk on May 03, 2004 at 10:49 UTC |