Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
For finer control of execution flow, it would be better if we could choose the exception which is thrown by @ThreadInterrupt (and possibly other transforms).
The reason is that we currently throw an InterruptedException, which may be catched for other reasons by the script.
Starting from Groovy 1.8.1, @ThreadInterrupt, @TimedInterrupt and @ConditionalInterrupt have an optional thrown parameter which allows specifying the kind of exception which is thrown :