Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Useless/Interesting Error Messages

by itub (Priest)
on Mar 04, 2005 at 13:46 UTC ( #436571=note: print w/ replies, xml ) Need Help??


in reply to Useless/Interesting Error Messages

I'm guilty of that one. I often have something like this:

if ($x == 1) { # do something } elsif ($x == 2) { # do something else } else { confess "should't be here!" }

The idea is that I'm assuming that the subroutine got called with the right $x, but I leave that exception just in case.


Comment on Re: Useless/Interesting Error Messages
Download Code
Replies are listed 'Best First'.
Re^2: Useless/Interesting Error Messages
by wazoox (Prior) on Mar 07, 2005 at 16:57 UTC
    reminds me of some of my code :
    else { # we should extract the data to some temporary space # and migrate it as we can # for now we just fail gracefully... :( &ExitOnError( $WarningMes.="[$$] FATAL : can't migrate (missing featur +e!\n", $rows{JOBID}); }
    Yeah, some day I'll have to write that missing part ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (18)
As of 2015-07-30 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls