-
Notifications
You must be signed in to change notification settings - Fork 9
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
Better exception handling #87
Conversation
8dc65a4
to
e5f2092
Compare
* unwrap JoxScopeExecutionException in flows * add `unwrapAndThrow` utility method * updated java docs and readme
e5f2092
to
8e29147
Compare
@@ -1678,6 +1676,10 @@ public void runToFile(Path path) throws Exception { | |||
} | |||
}); | |||
close(channel, null); | |||
} catch (JoxScopeExecutionException e) { | |||
Exception cause = (Exception) e.getCause(); | |||
close(channel, cause); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe I merged too fast ;) shouldn't we not-unwrap here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I might have missed that bit, let me open another PR to revert it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: #89
(sorry, comment for the wrong PR earlier) thanks for the work :) |
Closes #59