Exception handling with Exception::Class::DBI

[prev] [thread] [next] [Date index for 2005/06/29]

From: C.J.Collier
Subject: Exception handling with Exception::Class::DBI
Date: 00:12 on 29 Jun 2005
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

Re: Exception handling with Exception::Class::DBI
Matt S Trout 14:24 on 29 Jun 2005

Generated at 16:38 on 28 Jul 2005 by mariachi v0.52