Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(ichimunki) Re: Exceptions and Return Codes

by ichimunki (Priest)
on Jun 30, 2001 at 02:28 UTC ( #92828=note: print w/replies, xml ) Need Help??


in reply to Exceptions and Return Codes

I like use Carp; combined with a sensible combination of the Carp methods, using non-fatal warnings for some things, and using fatal warnings for most things (especially during development since you WANT the program to die so you have to fix the error).

Using Carp allows you to override the error handlers later without too much difficulty and substitute your own user-friendly error messages for production.

Also, Carp does some really nice things with stack tracing when you are using OO Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://92828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2023-12-11 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?