Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: SQLite handling of errors through common function

by daxim (Curate)
on Nov 06, 2013 at 12:32 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: SQLite handling of errors through common function
by sundialsvc4 (Abbot) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1061418]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-23 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found