diffplug / diffplug/durian

Consider generalizing Errors so that it also works for more constrained throwers

Open
#10 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
291
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Unless I missed something, `Errors` currently is used to wrap all throwables. It would be useful to be able to use `Errors` (or a generalized version of it, say, `SpecificErrors`) to wrap interfaces which throw only one checked exception, for example, `IOException`. Thus, `SpecificErrors` would be a generic type, with a type parameter `` which designates the kind of throwable to be wrapped. Any other unchecked exception thrown by the wrappers created by `SpecificErrors` would be left alone and thrown as-is.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.