Refactor SurveyHandler
to use Event.analyticsException
event for logging errors
#232
Labels
SurveyHandler
to use Event.analyticsException
event for logging errors
#232
Related to:
UnifiedAnalyticsError
#167There was already work done to send events for the
LogHandler
andSession
classes in #229, however, adding this feature to theSurveyHandler
requires a lot more of a refactor of the class so that we can easily pass theAnalytics
instance to it to send the eventsThe code block below shows how we are currently initializing the survey handler for tests
In the above example, we are passing a constructor for the
SurveyHandler
to theAnalytics.test
constructor. For theLogHandler
andSession
, we initialize these variables within the constructor body making it easy for us to passthis
as a parameter. Example for how we configureLogHandler
belowThe text was updated successfully, but these errors were encountered: