in reply to Re: Capturing error thrown by a database
in thread Capturing error thrown by a database

I have used the attributes but without much luck.. while trying to connect to database, I have also tried wrapping the code within eval but again its not helping. If you want I can paste the code..
  • Comment on Re^2: Capturing error thrown by a database

Replies are listed 'Best First'.
Re^3: Capturing error thrown by a database
by onelesd (Pilgrim) on Aug 01, 2011 at 18:55 UTC
    Posting your code would help. You can define a subroutine to handle all of your DBI errors: HandleError.
      I'll also point out the DBD::Sybase implements its own error handler callback (syb_err_handler connection level attribute). See the DBD::Sybase docs for details.

      Michael