Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

(cLive ;-) Re: use Fatal;

by cLive ;-) (Prior)
on Jan 10, 2002 at 05:20 UTC ( #137645=note: print w/replies, xml ) Need Help??

in reply to Re: use Fatal;
in thread use Fatal;

Actually, DBI is where I was thinking of bringing it in, combined with a custom $SIG{__DIE__}, eg:
local $SIG{__die__} = sub { die ("DBI Error: $DBI::errstr") if $DBI::errstr; die $!; };
But make sure you explicitly refer to the error (ie, don't use OO method unless method will definitely be in scope in the sub).

Could be very useful...

cLive ;-)

Replies are listed 'Best First'.
Re: (cLive ;-) Re: use Fatal;
by perrin (Chancellor) on Jan 10, 2002 at 08:30 UTC
    No need to use fatal with DBI. Just set DBI's RaiseError flag to true. You can even use eval() to catch exceptions with it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://137645]
[MidLifeXis]: Weird - my team is receiving a request for information barely related to a project we are on, asking for information already available to the user from a corporate data source, which happens to be the same source we would use.
[MidLifeXis]: It seems like the requester believes that we have some magic 8 ball source of info that he doesn't have access to.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-01-20 18:49 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (176 votes). Check out past polls.