Code example for ExecutionException

0
      public boolean isDone() { 
        return true; 
      } 
 
      public T get() throws ExecutionException { 
        throw new ExecutionException(error); 
      } 
 
      public T get(long timeout, TimeUnit unit) throws ExecutionException { 
        throw new ExecutionException(error); 
      } 
    }; 
  } 
}