Use this method to manually capture errors during application operation.
Unhandled errors are automatically captured, but this method can be used
to capture errors which were handled, but are still useful for telemetry.
Telemetry must be initialized, using initTelemetry before calling this method.
If telemetry is not initialized, then the exception will be discarded.
Captures an Error object for telemetry purposes.
Use this method to manually capture errors during application operation. Unhandled errors are automatically captured, but this method can be used to capture errors which were handled, but are still useful for telemetry.
Telemetry must be initialized, using initTelemetry before calling this method. If telemetry is not initialized, then the exception will be discarded.