Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@grokys
Copy link
Contributor

@grokys grokys commented Dec 11, 2018

Previously, exceptions thrown in ReactiveCommand execute methods would crash the application. Add a handler to RxApp.DefaultExceptionHandler to handle these exceptions and log them rather than crashing VS.

We hook this up in the ViewModelBase static constructor don't want to force-load rx on package load.

Previously, exceptions thrown in `ReactiveCommand` execute methods would crash the application. Add a handler to `RxApp.DefaultExceptionHandler` to handle these exceptions and log them rather than crashing VS.

We hook this up in the `ViewModelBase` static constructor don't want to force-load rx on package load.
Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works well. It doesn't crash and exceptions appear in the log. ✔️

We should really think about how to surface exceptions in a sensible way so that they have a chance of being reported. If this had been in place for the checks crash, chances are it wouldn't have been discovered/reported for a while.

@jcansdale jcansdale merged commit 28fc322 into master Dec 11, 2018
@jcansdale jcansdale deleted the fixes/rxui-default-exception-handler branch December 11, 2018 19:43
@meaghanlewis meaghanlewis added this to the 2.6.3 milestone Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants