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

Add an easy way to publish exceptions #23

Open
dotnetprofessional opened this issue Apr 21, 2017 · 0 comments
Open

Add an easy way to publish exceptions #23

dotnetprofessional opened this issue Apr 21, 2017 · 0 comments
Labels

Comments

@dotnetprofessional
Copy link
Owner

Apps often need to publish exceptions that can be consumed by one or more handlers. The code require typically would like like:

context.publish({ type: MessageException.typeName, message: new MessageException(error, message as any) });

This is tedious, and as its something that would be common, the proposal is to add an additional method to the context which would allow for the following instead:

context.publishException(errorMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant