Skip to content

Add an easy way to publish exceptions #23

@dotnetprofessional

Description

@dotnetprofessional

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions