Skip to content

Alternative to RxJavaErrorHandler #4566

Closed
@bobvanderlinden

Description

@bobvanderlinden

I'd like to catch unhandled errors that arise from Observables globally.

The documentation here suggests to use RxJavaPlugins.getInstance().registerErrorHandler, but both getInstance and RxJavaErrorHandler are deprecated with no hints as what to use instead.

The documentation on error handling in RxJava here also has no mention of globally handling errors.

I did find RxJavaHooks.setOnError, but I have not found any documentation on this, so I was unsure whether it should be used.

Is this still on-going work or can anyone suggest what to use as an alternative to registerErrorHandler?

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