|
From: <jue...@we...> - 2004-02-11 22:34:08
|
(Currently uploading 1.0 RC1 to SourceForge...)
=20
As this represents a minor enhancement, let's simply implement it for =
1.0 RC2. That release will mainly be about completed docs, but noone =
will mind some refinements in code, I assume :-)
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von tri...@tr...
Gesendet: Mi 11.02.2004 18:25
An: spr...@li...
Cc: spr...@li...
Betreff: [Springframework-developer] Re: [Springframework-user] Mapping =
Exceptions with sql-error-codes.xm l
This has come up a couple of times, but we have never really committed =
to adding
additional exception categories.
We are currently supporting translation to:
DataIntegrityViolationException
BadSqlGrammarException
=20
=20
Suggested categories to add (from my recollection):
DataRetrievalFailureException
OptimisticLockingFailureException
DataAccessResourceFailureException
Do we want to add some additional categories to the
SQLErrorCodeSQLExceptionTranslator?=20
If we do, we could keep it backwards compatible by making these =
additional
categories optional based on entries in sql-error-codes.xml.
If we decide to add this, when would be a good time considering RC1 =
being
released any minute?
Thomas
Quoting Meier Martin <mar...@el...>:
> 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><=
/prop
> erty>
> <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-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: <jue...@we...> - 2004-02-14 16:28:06
|
Thomas, if we want to include this in 1.0 final, please add these =
exception categories promptly. It represents a minor enhancement; =
therefore I don't mind it as a last minute addition as long as there are =
no further framework changes necessary.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von tri...@tr...
Gesendet: Mi 11.02.2004 18:25
An: spr...@li...
Cc: spr...@li...
Betreff: [Springframework-developer] Re: [Springframework-user] Mapping =
Exceptions with sql-error-codes.xm l
This has come up a couple of times, but we have never really committed =
to adding
additional exception categories.
We are currently supporting translation to:
DataIntegrityViolationException
BadSqlGrammarException
=20
=20
Suggested categories to add (from my recollection):
DataRetrievalFailureException
OptimisticLockingFailureException
DataAccessResourceFailureException
Do we want to add some additional categories to the
SQLErrorCodeSQLExceptionTranslator?=20
If we do, we could keep it backwards compatible by making these =
additional
categories optional based on entries in sql-error-codes.xml.
If we decide to add this, when would be a good time considering RC1 =
being
released any minute?
Thomas
Quoting Meier Martin <mar...@el...>:
> 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><=
/prop
> erty>
> <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-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Thomas R. <tri...@tr...> - 2004-02-14 19:29:15
|
Completed and in CVS. Thomas jürgen höller [werk3AT] wrote: >Thomas, if we want to include this in 1.0 final, please add these exception categories promptly. It represents a minor enhancement; therefore I don't mind it as a last minute addition as long as there are no further framework changes necessary. > >Juergen > > >________________________________ > >Von: spr...@li... im Auftrag von tri...@tr... >Gesendet: Mi 11.02.2004 18:25 >An: spr...@li... >Cc: spr...@li... >Betreff: [Springframework-developer] Re: [Springframework-user] Mapping Exceptions with sql-error-codes.xm l > > > > >This has come up a couple of times, but we have never really committed to adding >additional exception categories. > >We are currently supporting translation to: > DataIntegrityViolationException > BadSqlGrammarException > > >Suggested categories to add (from my recollection): > DataRetrievalFailureException > OptimisticLockingFailureException > DataAccessResourceFailureException > >Do we want to add some additional categories to the >SQLErrorCodeSQLExceptionTranslator? >If we do, we could keep it backwards compatible by making these additional >categories optional based on entries in sql-error-codes.xml. > >If we decide to add this, when would be a good time considering RC1 being >released any minute? > >Thomas > > >Quoting Meier Martin <mar...@el...>: > > > >>Hi, >> >>I tried to map a stale connection error code to a >>DataAccessResourceFailureException, but this did not work: >> >> <bean id="Oracle" class="org.springframework.jdbc.support.SQLErrorCodes"> >> <property >>name="badSqlGrammarCodes"><value>900,903,904,917,936,942,17006</value></prop >>erty> >> <property >>name="dataIntegrityViolationCodes"><value>1,1400,1722,2291</value></property >> >> >> <property >>name="dataIntegrityViolationCodes"><value>1,1400,1722,2291</value></property >> >> >> <property >>name="dataAccessResourceFailureCodes"><value>17002</value></property> >> </bean> >> >>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? >> >>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=1356&alloc_id=3438&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > >------------------------------------------------------- >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_id56&alloc_id438&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > |
|
From: Rod J. <rod...@in...> - 2004-02-11 23:29:34
|
We still need to shoot for 1.0 final for early March, mind...
----- Original Message -----
From: "j=FCrgen h=F6ller [werk3AT]" <jue...@we...>
To: <spr...@li...>
Sent: Wednesday, February 11, 2004 10:31 PM
Subject: Re: [Springframework-developer] Re: [Springframework-user] Mappi=
ng
Exceptions with sql-error-codes.xm l
(Currently uploading 1.0 RC1 to SourceForge...)
As this represents a minor enhancement, let's simply implement it for 1.0
RC2. That release will mainly be about completed docs, but noone will min=
d
some refinements in code, I assume :-)
Juergen
________________________________
Von: spr...@li... im Auftrag von
tri...@tr...
Gesendet: Mi 11.02.2004 18:25
An: spr...@li...
Cc: spr...@li...
Betreff: [Springframework-developer] Re: [Springframework-user] Mapping
Exceptions with sql-error-codes.xm l
This has come up a couple of times, but we have never really committed to
adding
additional exception categories.
We are currently supporting translation to:
DataIntegrityViolationException
BadSqlGrammarException
Suggested categories to add (from my recollection):
DataRetrievalFailureException
OptimisticLockingFailureException
DataAccessResourceFailureException
Do we want to add some additional categories to the
SQLErrorCodeSQLExceptionTranslator?
If we do, we could keep it backwards compatible by making these additiona=
l
categories optional based on entries in sql-error-codes.xml.
If we decide to add this, when would be a good time considering RC1 being
released any minute?
Thomas
Quoting Meier Martin <mar...@el...>:
> Hi,
>
> I tried to map a stale connection error code to a
> DataAccessResourceFailureException, but this did not work:
>
> <bean id=3D"Oracle"
class=3D"org.springframework.jdbc.support.SQLErrorCodes">
> <property
>
name=3D"badSqlGrammarCodes"><value>900,903,904,917,936,942,17006</value><=
/prop
> erty>
> <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>
>
> 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?
>
> 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-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
-------------------------------------------------------
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=1356&alloc_id438&op=3Dick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|