Skip to content

2.x: Remove checked exceptions from transformer interfaces? #4709

Closed
@JakeWharton

Description

@JakeWharton

Now that transformers are not Function extensions, does it makes sense that they allow throwing checked exceptions? When a transformer is being invoked, its job is taking an observable and transforming it into another observable but not actually doing any real work. Thus, it seems strange that you would ever encounter something that threw a checked exception in this operation. It would be a sign that you need to move that work into the stream pipeline instead of the observable creation pipeline.

This also makes code that has to deal with transformers annoying because they now have to handle (aka wrap and throw) these checked exceptions.

Happy to send a PR, but wanted to get some thoughts first and make sure I wasn't missing anything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions