src/vs/base/common/errors.ts/ErrorNoTelemetry/fromError
class ErrorNoTelemetry:	public static fromError(err: any): ErrorNoTelemetry {
		if (err && err instanceof Error) {
			const result = new ErrorNoTelemetry();
			result.name = err.name;
			result.message = err.message;
			result.stack = err.stack;
			return result;
		}

		return new ErrorNoTelemetry(err);
	}