in reply to Re: Re: How to say 'oops' in OOPs?
in thread How to say 'oops' in OOPs?

You can always make the error handling behaviour an option. For example, DBI can be made to return errors, or throw an exception, depending on whether you pass the RaiseError option at object creation time.

That way you can keep exception throwing freaks like me happy too :-)

You might also find Best Practices for Exception Handling of interest.

Replies are listed 'Best First'.
Re: Re^3: How to say 'oops' in OOPs?
by Willard B. Trophy (Hermit) on Apr 09, 2003 at 20:28 UTC
    That's a most useful reference; thank you. If I'd have found it first (and, to be frank, if Toronto Perl Mongers list management code hadn't barfed on my original message just 'cos it had sub in it) I might not have needed to ask. Mind you, the discussion here has taken interesting and useful (to me) directions.

    --
    bowling trophy thieves, die!