Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Node Status?
node history
Node Type: note [id://92828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2019-12-08 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?