Change request #109

Improve exception handling for custom method invocation

Added by Oliver Gierke 11 months ago. Updated 11 months ago.

Status:Closed Start:
Priority:Normal Due date:
Assigned to:Oliver Gierke % Done:

100%

Category:- Spent time: -
Target version:0.7

Description

Currently exceptions being thrown in custom methods are wrapped into an InvocationTargetException due to the reflection call. This is rather ugly as it makes exception handling at the client side really awkward. This could be improved by using Spring's ReflectionUtils class that correctly handles the case.

Originally proposed by Wolfgang Brauneis.

Spring's ReflectionUtils class does kind of a good job but does not allow the invoked method to throw checked exceptions which might be the case in some cases. Thus manual handling of the case might be necessary.

mylyn-context.zip (3.1 KB) Oliver Gierke, 08/27/2009 05:01 pm

Associated revisions

Revision 6694
Added by Oliver Gierke 11 months ago

  • fixes #109 - exceptions in custom implementations are thrown as is now

Revision 6698
Added by Oliver Gierke 11 months ago

  • references #109 - tests for exception handling

History

Updated by Oliver Gierke 11 months ago

  • Status changed from New to In progress

Updated by Oliver Gierke 11 months ago

Updated by Oliver Gierke 11 months ago

  • Status changed from In progress to Fixed
  • % Done changed from 0 to 100

Applied in changeset r6694.

Updated by Oliver Gierke 11 months ago

  • Target version set to 0.7

Updated by Oliver Gierke 11 months ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF