Skip to content

2.x Emitting an error to terminated Subject could have an explanation [Proposal] #5079

Closed
@neworld

Description

@neworld

I eitting an error to terminated subject. Example code:

val subject = BehavioralSubject.create<Unit>()
subject.onError(RuntimeException(""))
subject.onError(RuntimeException("")) //this error goes to Rx error handler.

That error is handled here:

Maybe, would be nice, if that error will be wrapped into another exception, which explains, why this error goes to Rx error handler. Example:

RxJavaPlugins.onError(RuntimeException("Can't emit the error in terminated subject", t)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions