in reply to Re: Re: Re: Error module
in thread Error module
it will catch all errors including perl errors such as Undifined subrutine..., etc, and I don't want that of course.sub func { ... throw Error::Simple('some message'); } try { func(); } catch Error::Simple with { print "caught something\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re5: Error module
by dragonchild (Archbishop) on Aug 18, 2003 at 17:07 UTC | |
by hotshot (Prior) on Aug 19, 2003 at 05:40 UTC | |
by dragonchild (Archbishop) on Aug 19, 2003 at 12:47 UTC | |
by hotshot (Prior) on Aug 19, 2003 at 15:37 UTC | |
by dragonchild (Archbishop) on Aug 19, 2003 at 15:43 UTC | |
| |
by particle (Vicar) on Aug 19, 2003 at 13:17 UTC |