chore(snowplow): Consolidate usage around a single error interface, enrichments.Failure
Related: #100
This MR consolidates what our internal methods return as "failures" into implementations of the enrichments.Failure interface instead of the concrete objects themselves. This streamlines return-types and removes the need to type-cast objects unnecessarily. We only check & perform type-assertions once when converting these objects into corresponding badrow.Badrow definitions.
These changes were also developed & tested whole within the ongoing development in c458b144.
Edited by Ankit Bhatnagar