Code example for NetworkErrorException

0
		if (weather != null){
			WeatherNotificationSettings.setLastTemperature(context,
					weather.getValue(), weather.getTime());
			return weather;
		} else { 
			throw new NetworkErrorException();
		} 
	} 
 
	/** 
	 * Shows a notification with information about the error, either NoLocation 
	 * or DownloadError (default) 
	 *  
	 * @param e 
	 *            Exception 
	 */ 
	private void makeNotification(Exception e) {
		int tickerIcon, contentIcon;
		CharSequence tickerText, contentTitle, contentText;
		long contentTime;
		final DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);