-
-
Notifications
You must be signed in to change notification settings - Fork 2k
enhancement: allow Java8 lambda steps to throw checked Exceptions #1001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Any temporary replacement for this? Any special RuntimeException to be thrown? |
There is an easy workaround for now: catch all your checked exceptions and rethrow as
|
I guess the solution is to add |
any news on this? |
No-one has stepped up to implement it yet. I would hope that a well written PR fix would be accepted, but I can't speak for the project maintainers. I don't plan to implement it myself in the short / medium term. |
Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Any steps declared with the Java8 lambda syntax may not throw checked Exceptions:
It would be more convenient for developers if they were declared as "throws Exception"; the runtime machinery all copes with it fine, and it avoids lots of "
catch(e) { throw new RuntimeException(e) }
" noise.This should be a simple change to the interface declarations in
StepdefBody
The text was updated successfully, but these errors were encountered: