Code example for ParseException

Methods: printStackTrace

0
		Date msgDate;
		try { 
			msgDate = Message.SQLDateFormatter.parse(cr.getString(mColTime));
		} catch (ParseException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
			msgDate = new Date();
		} 
		mMessageSummary.setText(Message.DisplayDateTimeFormat.format(msgDate));
		mRawMessageRow.setText(cr.getString(mColMessage));
		mMonitorString.setText(cr.getString(mColPhone));
		// mMsg = MessageTranslator.GetMessage(getContext(), cr.getInt(1)); 
		// mMessageSummary.setText(Message.DisplayDateTimeFormat.format(mMsg.getTimestamp())); 
		// if(mMsg.getMonitor() == null) { 
		// mMonitorString.setText("null"); 
		// } else { 
		// mMonitorString.setText("  " + mMsg.getMonitor().getPhone()); 
		// } 
		// mRawMessageRow.setText(mMsg.getMessageText()); 
	} 
Experience pair programming with AI  Get Codota for Java