Subversion Repositories SmartDukaan

Rev

Rev 10245 | Rev 10247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10245 Rev 10246
Line 189... Line 189...
189
			 } catch (TException e) {
189
			 } catch (TException e) {
190
				 try {
190
				 try {
191
					 new CatalogClient().getClient().updateMarketPlacePriceUpdateStatus(updateList, timestamp,8);
191
					 new CatalogClient().getClient().updateMarketPlacePriceUpdateStatus(updateList, timestamp,8);
192
				 } catch (TTransportException e1) {
192
				 } catch (TTransportException e1) {
193
					 e1.printStackTrace();
193
					 e1.printStackTrace();
194
					 logger.info("Exception" + e1.getMessage());
194
					 logger.info("Exception" + e1);
195
				 } catch (TException e1) {
195
				 } catch (TException e1) {
196
					 e1.printStackTrace();
196
					 e1.printStackTrace();
197
					 logger.info("Exception" + e1.getMessage());
197
					 logger.info("Exception" + e1);
198
				 }
198
				 }
199
				 logger.info("Exception" + e.getMessage());
199
				 logger.info("Exception" + e);
200
			 }
200
			 }
201
		 } catch (Exception e) {
201
		 } catch (Exception e) {
202
			 e.printStackTrace();
202
			 e.printStackTrace();
203
			 logger.info("Exception" + e.getStackTrace());
203
			 logger.info("Exception" + e);
204
			 GmailUtils mailer = new GmailUtils();
204
			 GmailUtils mailer = new GmailUtils();
205
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
205
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
206
			 "Item ID       : " +this.item.getId() +"\n"+
206
			 "Item ID       : " +this.item.getId() +"\n"+
207
			 "SUPC          : " +this.supc +"\n"+
207
			 "SUPC          : " +this.supc +"\n"+
208
			 "Updated Price : " +this.price;
208
			 "Updated Price : " +this.price;
209
			 try {
209
			 try {
210
				 mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
210
				 mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
211
			 } catch (MessagingException e1) {
211
			 } catch (MessagingException e1) {
212
				 e1.printStackTrace();
212
				 e1.printStackTrace();
213
				 logger.info("Exception" + e1.getMessage());
213
				 logger.info("Exception" + e1);
214
			 }
214
			 }
215
 
215
 
216
		 } 
216
		 } 
217
	 }
217
	 }
218
	 String getProductName(Item item){
218
	 String getProductName(Item item){