Skip to content

Exception handling in streams #59

@jroper

Description

@jroper

All of the streams callbacks are using java.util.function.*, which don't allow throwing checked exceptions. Should we allow streams to be completed with checked exceptions, by providing a wrapper unchecked exception that gets unwrapped when caught? java.util.concurrent.CompletionException could be a candidate to use.

One argument for not doing this is that CompletionStage doesn't do it, so it may worth being consistent in behavior with CompletionStage. On the other hand, it's much nicer for users to not have to unwrap exceptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions