good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Exception::Class - how to use?by rvosa (Curate) |
on Aug 24, 2005 at 21:20 UTC ( [id://486368]=perlquestion: print w/replies, xml ) | Need Help?? |
rvosa has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, I am trying to understand how to use Exception::Class in a large-ish multimodule application. As part of the set of modules I made one package where I am planning to define all exceptions, i.e.: So then, elsewhere in the modules, there might be OO getters and setters like this: And then the user has to go through a contortion like: Is that how it works? Or are the exceptions caught inside the object methods? Pardon my ignorance, but I've never worried about this before, and I wish to learn. Thank you!
Back to
Seekers of Perl Wisdom
|
|