gctoolkit icon indicating copy to clipboard operation
gctoolkit copied to clipboard

Should we throw a better exception instead of logging, eating and returning a null object in GCToolkit main class

Open karianna opened this issue 2 years ago • 1 comments

          Should we throw a better exception instead of logging, eating and returning a null object?

Originally posted by @karianna in https://github.com/microsoft/gctoolkit/pull/252#discussion_r1068699799

karianna avatar Jan 17 '23 18:01 karianna

There should be API for consuming errors from the parser and from the aggregators/aggregations. As a user of the toolkit, I should be able to receive some notification of an error or exception. There is (or will be soon) API for the event and parsing message bus. There should (or could) be an error message bus. By default, the consumer could just log. Or I could implement a consumer that take some action when an error is posted.

dsgrieve avatar Jan 18 '23 15:01 dsgrieve