Subversion Repositories SmartDukaan

Rev

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

Rev 10240 Rev 10242
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
					 logger.error("Exception" + e1.getMessage());
195
				 } catch (TException e1) {
195
				 } catch (TException e1) {
196
					 e1.printStackTrace();
196
					 e1.printStackTrace();
197
					 logger.error("Exception" + e1);
197
					 logger.error("Exception" + e1.getMessage());
198
				 }
198
				 }
199
				 logger.error("Exception" + e);
199
				 logger.error("Exception" + e.getMessage());
200
			 }
200
			 }
201
		 } catch (Exception e) {
201
		 } catch (Exception e) {
202
			 e.printStackTrace();
202
			 e.printStackTrace();
203
			 logger.error("Exception" + e);
203
			 logger.error("Exception" + e);
204
			 GmailUtils mailer = new GmailUtils();
204
			 GmailUtils mailer = new GmailUtils();
Line 208... Line 208...
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.error("Exception" + e1);
213
				 logger.error("Exception" + e1.getMessage());
214
			 }
214
			 }
215
 
215
 
216
		 } 
216
		 } 
217
	 }
217
	 }
218
	 String getProductName(Item item){
218
	 String getProductName(Item item){