{"ScriptPreparationCode":"function getData(){\r\n throw new Error(\u0027get data error\u0027)\r\n}","TestCases":[{"Name":"try catch","Code":"let response;\r\ntry {\r\n\tresponse = getData()\r\n}catch(e){\r\n\tresponse = e;\r\n}","IsDeferred":false},{"Name":"promise","Code":"const promise = new Promise((resolve, reject) =\u003E {\r\n resolve(getData())\r\n}).then(\r\n r =\u003E r,\r\n \te =\u003E e\r\n)","IsDeferred":false}]}