sendErrorData
Function to send an error. Used within a TelemetryLogger
Parameters
error
The error being logged
data
Any additional data to be collected with the exception
Function to send an error. Used within a TelemetryLogger
The error being logged
Any additional data to be collected with the exception