Subversion Repositories SmartDukaan

Rev

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

Rev 10238 Rev 10239
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.error("Exception" + e1);
194
				 } catch (TException e1) {
195
				 } catch (TException e1) {
195
					 e1.printStackTrace();
196
					 e1.printStackTrace();
-
 
197
					 logger.error("Exception" + e1);
196
				 }
198
				 }
197
				 e.printStackTrace();
199
				 logger.error("Exception" + e);
198
			 }
200
			 }
199
		 } catch (Exception e) {
201
		 } catch (Exception e) {
200
			 e.printStackTrace();
202
			 e.printStackTrace();
-
 
203
			 logger.error("Exception" + e);
201
			 GmailUtils mailer = new GmailUtils();
204
			 GmailUtils mailer = new GmailUtils();
202
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
205
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
203
			 "Item ID       : " +this.item.getId() +"\n"+
206
			 "Item ID       : " +this.item.getId() +"\n"+
204
			 "SUPC          : " +this.supc +"\n"+
207
			 "SUPC          : " +this.supc +"\n"+
205
			 "Updated Price : " +this.price;
208
			 "Updated Price : " +this.price;
206
			 try {
209
			 try {
207
				 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>());
208
			 } catch (MessagingException e1) {
211
			 } catch (MessagingException e1) {
209
				 e1.printStackTrace();
212
				 e1.printStackTrace();
-
 
213
				 logger.error("Exception" + e1);
210
			 }
214
			 }
211
 
215
 
212
		 } 
216
		 } 
213
	 }
217
	 }
214
	 String getProductName(Item item){
218
	 String getProductName(Item item){