Code example for ExecutionException

Methods: getMessage, printStackTrace

0
			return new SendAction().execute(_event).get();
		} catch (InterruptedException e) {
			e.printStackTrace();
			excp = e.getMessage();
		} catch (ExecutionException e) {
			e.printStackTrace();
			excp = e.getMessage();
		} 
		return Result.error(-99, excp);
	} 
 
	/** 
	 * the implementation of the sending. Calling websevice methods should be placed here. Since doSend is already executed in 
	 * a non-ui thread, it can be done directly (without having to instantiate an AsyncTask) 
	 * @param basicEvent 
	 * @return 
	 */ 
	public abstract Result doSend(BasicEvent basicEvent);
 
	/** 
	 * executed when the sending is done. cannot be overridden