Skip to content

Catch exceptions from ExecuteAsync.#701

Merged
anaisbetts merged 1 commit into
reactiveui:masterfrom
TimmiT93:invokecommand-catch
Aug 18, 2014
Merged

Catch exceptions from ExecuteAsync.#701
anaisbetts merged 1 commit into
reactiveui:masterfrom
TimmiT93:invokecommand-catch

Conversation

@TimmiT93
Copy link
Copy Markdown
Contributor

This PR adds Catch to InvokeCommand to handle exceptions that would otherwise end up in the unhandled exception handler.

@anaisbetts
Copy link
Copy Markdown
Member

I'm not sure that I want to blindly suppress exceptions like this. Are you subscribing to the command's ThrownExceptions Observable?

@jlaanstra
Copy link
Copy Markdown
Contributor

There is no other way to catch these exceptions, because InvokeCommand returns an IDisposable.

Are you subscribing to the command's ThrownExceptions Observable?

Yes.

@anaisbetts anaisbetts merged commit 6044986 into reactiveui:master Aug 18, 2014
@lock lock Bot locked and limited conversation to collaborators Jun 26, 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.

3 participants