Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下关于使用LiveData时的错误情境 #59

Open
ronin5204 opened this issue Feb 2, 2021 · 2 comments
Open

请教一下关于使用LiveData时的错误情境 #59

ronin5204 opened this issue Feb 2, 2021 · 2 comments

Comments

@ronin5204
Copy link

假设在观察liveData的代码块里面跳出异常,后续观察就失效了,请问有解决办法吗~?

@ronin5204
Copy link
Author

@android-notes 求助 @@

@RUANHAOANDROID
Copy link

在liveData try捕获异常,如果执行错误livedata post error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants