Update JavaApp.java

application-manager-new
buddhi nipun mihara 8 years ago
parent a45bbf67b5
commit 52712e1b2e

@ -100,12 +100,12 @@ public class JavaApp {
devicetoken = outputJson.getString("accessToken"); devicetoken = outputJson.getString("accessToken");
devicerefreshtoken = outputJson.getString("refreshToken"); devicerefreshtoken = outputJson.getString("refreshToken");
if (response.getStatus() != 200) { if (response.getStatus() != 200) {
throw new RuntimeException("Failed : HTTP error code : " + response.getStatus()); // throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
} }
config.SaveRegistration(spec, devicetoken, devicerefreshtoken); config.SaveRegistration(spec, devicetoken, devicerefreshtoken);
} catch (Exception e) { } catch (Exception e) {
//e.printStackTrace(); //e.printStackTrace();
throw e; //throw e;
} }
} }

Loading…
Cancel
Save