Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: SQLite handling of errors through common function

by daxim (Chaplain)
on Nov 06, 2013 at 12:32 UTC ( #1061418=note: print w/ replies, xml ) Need Help??


in reply to Re: SQLite handling of errors through common function
in thread SQLite handling of errors through common function

I downvoted this because the OP already uses RaiseError. The answer does not fit the question.


Comment on Re^2: SQLite handling of errors through common function
Re^3: SQLite handling of errors through common function
by sundialsvc4 (Monsignor) on Nov 06, 2013 at 19:02 UTC

    So sue me for overlooking that.   O_o ...   (Not that I give a damn about “XP” anyway, but let’s just stay on-topic here.)   Your eagle-eyed observation does raise a different point:   my understanding is that the presence of this option will prevent the execution of the existing handler-routine in the OP’s example, because (IIRC) it will throw an exception in case of any error.   The DBI-call won’t return a non-zero value ... it won’t return anything at all.   Instead, the code will die, and I see no error-handling logic (not even a basic eval{}) in it.   Which would definitely be a bug of a different sort.

      So sue me for overlooking that.

      There is no suing on perlmonks; daxim already downvoted

      My understanding is the HandleError routine is called before DBI dies and the handler can actually alter what DBI does.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-19 03:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls