Code example for NetworkErrorException

0
			response = new ServerRequestTask().execute(i_Request).get();
			Log.d(TAG, "The response is: " + response);
			// If there was a network connection problem 
			if(response == null) {
				Log.d(TAG, "Network problem!");
				throw new NetworkErrorException();
			} 
		} 
		catch (InterruptedException e) {
			Log.d(TAG, "AsyncTask error.");
			e.printStackTrace();
		} catch (ExecutionException e) {
			Log.d(TAG, "AsyncTask error.");
			e.printStackTrace();
		} 
		 
		return response;
	} 
	 
	/** 
	 * This function checks whether a Token is valid and belongs to a given email