Exception handling with Exception::Class::DBI
[prev]
[thread]
[next]
[Date index for 2005/06/29]
Hey all,
Is there any way to get a Class::DBI connection to pass
Exception::Class::DBI ->handler as DBI->Connect()'s HandleError
argument?
I'm sure the answer is simple, I just haven't found it looking through
the docs today.
I tried this in vain hopes that it would work. It didn't :)
MailDB::DBI->connection('dbi:mysql:maildb', 'foo', 'bar',
{ PrintError => 0,
RaiseError => 0,
HandleError => Exception::Class::DBI->handler
});
Thanks!
C.J.
C.J. Collier
<cjcollier@xxxxx.xxx>, MySQL AB
http://www.mysql.com/products/maxdb
Support Manager MaxDB
4875 NW Gustafson Road, Silverdale WA, 98383, USA
Phone: +1 206 226 5809
|
Exception handling with Exception::Class::DBI
C.J.Collier 00:12 on 29 Jun 2005
|