You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by StephanEwen <gi...@git.apache.org> on 2017/02/22 10:33:30 UTC
[GitHub] flink issue #3380: [FLINK-5865][state] Throw original exception in the state...
Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/3380
I think it is a good idea to avoid exception wrapping where ever possible, so +1 to that.
I was wondering if we can improve exception handling even further for the state abstraction, especially getting rid of the `throws Exception` in all the methods on the state interfaces (like `ValueState.get()`).
Can we find some more "specific" exceptions for the signature, like `throws IOException` or `throws StateAccessException`. That would mean that some exceptions would have to be wrapped, though.
I think Java would support exception "downgrading", meaning going to more specific exceptions, without breaking the API.
What do you think?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---