Skip to content
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

Refine exception wrapping mechanism #27

Closed
dakusui opened this issue Oct 27, 2015 · 0 comments
Closed

Refine exception wrapping mechanism #27

dakusui opened this issue Oct 27, 2015 · 0 comments
Assignees

Comments

@dakusui
Copy link
Owner

dakusui commented Oct 27, 2015

Right now Checks.rethrow wraps and rethrow checked exceptions from lower levels.
Instead we shoud introduce Checks.wrap checked exception and 'return' wrapping runtime exception and callers should be responsible for throwing returned runtime exception.
By this we will not need to suppress around warnings caused by the rethrow method (because it makes java compiler not understand the method is aborted at the points where the method is called)

dakusui referenced this issue Oct 27, 2015
@dakusui dakusui self-assigned this Oct 27, 2015
@dakusui dakusui closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant