Changeset 4f08c5de8d34e2350468d10252ac0e5cacf4c0a2
- Timestamp:
- 05/06/08 15:04:41
(3 months ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1210079081 +0200
- git-parent:
[869f5e94774adc096cbcca6612298db000f1e2e5]
- git-author:
- Christopher Jung <bktheg@web.de> 1210079081 +0200
- Message:
[feature] StaleObjectStateExceptions? sorgen nun fuer einen kurzen Hinweistext statt des kompletten Stacktraces
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r287435c |
r4f08c5d |
|
| 36 | 36 | |
|---|
| 37 | 37 | import org.apache.commons.lang.StringUtils; |
|---|
| | 38 | import org.hibernate.StaleObjectStateException; |
|---|
| 38 | 39 | import org.hibernate.exception.GenericJDBCException; |
|---|
| 39 | 40 | import org.hibernate.exception.LockAcquisitionException; |
|---|
| … | … | |
| 487 | 488 | addError("Die gewünschte Aktion konnte nicht erfolgreich durchgeführt werden. Bitte versuchen sie es erneut."); |
|---|
| 488 | 489 | } |
|---|
| | 490 | else if( t instanceof StaleObjectStateException ) { |
|---|
| | 491 | addError("Die gewünschte Aktion konnte nicht erfolgreich durchgeführt werden. Bitte versuchen sie es erneut."); |
|---|
| | 492 | } |
|---|
| 489 | 493 | else if( (t instanceof GenericJDBCException) && |
|---|
| 490 | 494 | (((GenericJDBCException)t).getSQLException().getMessage() != null) && |
|---|