Skip to content

Mapping onError notifications #3652

Closed
Closed
@twz123

Description

@twz123

I often have the use case that I want to map the Throwable emitted by an onError notification of an Observable to something else, for example wrapping or unwrapping it.

Maybe I missed something, but apparently there is no stock solution in RxJava to achieve this. Currently, I use a custom Operator. Would it make sense to add such an Operator along with its corresponding Observable.mapError / Single.mapError methods to RxJava directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions