Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: capture sybase error

by mpeppler (Vicar)
on Nov 23, 2005 at 19:32 UTC ( #511217=note: print w/replies, xml ) Need Help??


in reply to capture sybase error

I guess that it's the $app->log($FATAL...) bit that causes the script to exit.

You could probably do something like this:

foreach ....( ... ) { my $rc = $dbh->do($sql); if(!$rc) { if($dbh->err == 4305) { # print a warning here? last; } else { $app->log(...); } } } ...
Michael

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-11-24 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?