Code example for NetworkErrorException

		if (weather != null){
					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;
Connect your IDE to all the code out there  Get Codota for Java