Code example for Future

Methods: get

0
	} 
	 
	public final void printException() { 
		if (this.future != null) {
			try { 
				this.future.get();
			} catch (ExecutionException e) {
				Throwable rootException = e.getCause();
				rootException.printStackTrace();
			} catch (Exception e) {
				e.printStackTrace();
			} 
		} 
	} 
}