package seedu.emeraldo.logic.commands;

public class EditCommand extends Command{
    
    public static final String COMMAND_WORD = "edit";

    public static final String MESSAGE_USAGE = COMMAND_WORD            
            + ": Edits the task identified by the index number used in the last tasks listing.\n"
            + "Parameters: INDEX (must be a positive integer) and \"TASK_DESCRIPTION\"\n"
            + "Example: " + COMMAND_WORD + " 1" + "CS2103T Week 8 Tutorial";
   
    public static final String MESSAGE_EDIT_TASK_SUCCESS = "Edited task: %1$s";
    
    public final int targetIndex;
    
    public final String field;
    
    public EditCommand(int targetIndex, String field) {
        this.targetIndex = targetIndex;
        this.field = field;
    }
    
    @Override
    public CommandResult execute() {
        // TODO Auto-generated method stub
        return null;
    }

}

@@ -33,16 +33,81 @@
 mands;%0A%0A
+import seedu.emeraldo.commons.exceptions.IllegalValueException;%0A%0A
 public c
@@ -724,19 +724,22 @@
 Command(
+Str
 in
-t
+g
  targetI
@@ -757,16 +757,45 @@
 g field)
+ throws IllegalValueException
  %7B%0A     
@@ -816,16 +816,33 @@
 Index = 
+Integer.parseInt(
 targetIn
@@ -840,24 +840,25 @@
 (targetIndex
+)
 ;%0A        th

Add IllegalValueException and convert String to int