![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: CGI::Application::Plugin::DBH connect error handlingby Anonyrnous Monk (Hermit) |
on Feb 10, 2011 at 21:30 UTC ( [id://887537]=note: print w/replies, xml ) | Need Help?? |
In what way would you like to handle the error that the DB is down? As for the exception you're currently getting as a result, what DBI connect attributes have you configured? The following snippet
apparently raises an exception, so my suspicion would be that you've somehow set RaiseError => 1. Maybe you could force a stack trace to get more detailed info on what exactly is triggering the connect, so you know what to put eval {} around?
In Section
Seekers of Perl Wisdom
|
|