|
From: <jue...@we...> - 2004-02-17 10:17:13
|
Thomas,
=20
SQLErrorCodesFactoryTests fails because of an unexpected call to =
getDriverVersion now - could this be a side-effect or your changes?
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag von =
Thomas Risberg
Gesendet: Sa 14.02.2004 20:39
An: spr...@li...
Betreff: Re: [Springframework-user] Mapping Exceptions with =
sql-error-codes.xm l
Martin,
I have added thre additional error categories:
DataRetrievalFailureException, OptimisticLockingFailureException and
DataAccessResourceFailureException.
You can add any of the following if you need this transalation:
<property
name=3D"dataRetrievalFailureCodes"><value>12345</value></property>
<property
name=3D"optimisticLockingFailureCodes"><value>56789</value></property>
<property
name=3D"dataAccessResourceFailureCodes"><value>12341</value></property>
The code is in CVS now and will be part of 1.0 final.
Thomas
Meier Martin wrote:
> Hi,
>=20
> I tried to map a stale connection error code to a
> DataAccessResourceFailureException, but this did not work:
>=20
> <bean id=3D"Oracle"
> class=3D"org.springframework.jdbc.support.SQLErrorCodes">
> <property
> =
name=3D"badSqlGrammarCodes"><value>900,903,904,917,936,942,17006</value><=
/property>
> <property
> =
name=3D"dataIntegrityViolationCodes"><value>1,1400,1722,2291</value></pro=
perty>
> <property
> =
name=3D"dataIntegrityViolationCodes"><value>1,1400,1722,2291</value></pro=
perty>
> <property
> =
name=3D"dataAccessResourceFailureCodes"><value>17002</value></property>
> </bean>
>=20
> As I saw in the class SQLErrorCodes only the
> methods setBadSqlGrammerCodes(...) and
> setDataIntegrityViolationCodes(...) are supported. How is it possible
> to map an error code to a dataAccessResourceFailureException with the
> sql-error-codes.xml?
>=20
> Cheers
> -Martin
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick
_______________________________________________
Springframework-user mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-user
|