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);
Apps often need to publish exceptions that can be consumed by one or more handlers. The code require typically would like like:
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: