Changeset ea1ac253acd3a04e25eff3bef4e2b888430eee2b
- Timestamp:
- 05/12/08 12:15:25
(2 months ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1210587325 +0200
- git-parent:
[47cd40b25bcf0af9685388fb11a88e17704eb4ad]
- git-author:
- Christopher Jung <bktheg@web.de> 1210587325 +0200
- Message:
[bug] Fehlerbehandlung bei Adminplugins gefixt. Exceptions fuehren nun auch zu einem Rollback
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r953ed23 |
rea1ac25 |
|
| 61 | 61 | |
|---|
| 62 | 62 | @Override |
|---|
| 63 | | public boolean equals(Object object) |
|---|
| 64 | | { |
|---|
| 65 | | if(object == null) |
|---|
| 66 | | { |
|---|
| | 63 | public boolean equals(Object object) { |
|---|
| | 64 | if(object == null) { |
|---|
| 67 | 65 | return false; |
|---|
| 68 | 66 | } |
|---|
| 69 | 67 | |
|---|
| 70 | | if(object.getClass() != this.getClass()) |
|---|
| 71 | | { |
|---|
| | 68 | if(object.getClass() != this.getClass()) { |
|---|
| 72 | 69 | return false; |
|---|
| 73 | 70 | } |
|---|
| … | … | |
| 75 | 72 | MenuEntry other = (MenuEntry) object; |
|---|
| 76 | 73 | return this.name.equals(other.name); |
|---|
| | 74 | } |
|---|
| | 75 | |
|---|
| | 76 | @Override |
|---|
| | 77 | public int hashCode() { |
|---|
| | 78 | return this.name.hashCode(); |
|---|
| 77 | 79 | } |
|---|
| 78 | 80 | } |
|---|
| … | … | |
| 237 | 239 | plugin.output(this, page, act); |
|---|
| 238 | 240 | } |
|---|
| 239 | | catch( Exception e ) { |
|---|
| | 241 | catch( RuntimeException e ) { |
|---|
| | 242 | addError("Fehler beim Aufruf des Admin-Plugins: "+e); |
|---|
| | 243 | |
|---|
| | 244 | throw e; |
|---|
| | 245 | } |
|---|
| | 246 | catch( InstantiationException e ) { |
|---|
| | 247 | addError("Fehler beim Aufruf des Admin-Plugins: "+e); |
|---|
| | 248 | e.printStackTrace(); |
|---|
| | 249 | } |
|---|
| | 250 | catch( IllegalAccessException e ) { |
|---|
| 240 | 251 | addError("Fehler beim Aufruf des Admin-Plugins: "+e); |
|---|
| 241 | 252 | e.printStackTrace(); |
|---|