in reply to How to return errors from my object oriented subroutine
Exceptions are typically used when something prohibits the system from continuing as it normally would, ie, some sort of serious error. I can't see uglying up the calling code by wrapping it in eval blocks and checking $@
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
Try this in VI: The Emacs Code Browser (sure to earn me a healthy supply of downvotes... heheh)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: How to return errors from my object oriented subroutine
by merlyn (Sage) on Aug 19, 2003 at 18:59 UTC | |
|
Re2: How to return errors from my object oriented subroutine
by dragonchild (Archbishop) on Aug 19, 2003 at 18:59 UTC | |
|
Re: Re: How to return errors from my object oriented subroutine
by perrin (Chancellor) on Aug 19, 2003 at 19:58 UTC | |
by dragonchild (Archbishop) on Aug 19, 2003 at 20:31 UTC | |
by princepawn (Parson) on Aug 19, 2003 at 20:21 UTC | |
by perrin (Chancellor) on Aug 19, 2003 at 20:42 UTC |